- 浏览: 4249765 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
masuweng:
...
kaptcha验证码组件使用简介 -
caobingyi:
你好,问下html是怎么调用loginCheck方法的?
kaptcha验证码组件使用简介 -
hayoouch:
XieFuQ 写道既然都考虑到乐观锁了,是否可以直接换表存储引 ...
mysql乐观锁总结和实践 -
murdonson:
辛苦了
mysql悲观锁总结和实践 -
iamnotstar:
写得不错,感谢分享
memcached-session-manager配置
首先切换到Mongodb bin目录
第一步:按如下格式输入命令
C:\Documents and Settings\chenzhou>D: D:\>cd D:\Mongodb\bin
第二步:键入help命令
D:\Mongodb\bin>mongod --help Mon Dec 12 19:47:52 Mon Dec 12 19:47:52 ** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data Mon Dec 12 19:47:52 ** see http://blog.mongodb.org/post/137788967/32-bit-limitations Mon Dec 12 19:47:52 ** with --journal, the limit is lower Mon Dec 12 19:47:52 Allowed options: General options: -h [ --help ] show this usage information --version show version information【查看版本信息】 -f [ --config ] arg configuration file specifying additional options【把其他选项定义在配置文件中,然后通过配置文件启动】 -v [ --verbose ] be more verbose (include multiple times for more verbosity e.g. -vvvvv) --quiet quieter output --port arg specify port number【端口设置】 --bind_ip arg comma separated list of ip addresses to listen on - all local ips by default --maxConns arg max number of simultaneous connections【最大连接数设置】 --objcheck inspect client data for validity on receipt --logpath arg log file to send write to instead of stdout - has to be a file, not directory【日志文件所在的路径,必须配置为文件路径,而不是所在的目录】 --logappend append to logpath instead of over-writing【配置日志信息在日志文件中累加,而不是覆盖】 --pidfilepath arg full path to pidfile (if not set, no pidfile is created) --keyFile arg private key for cluster authentication (only for replica sets) --auth run with security --cpu periodically show cpu and iowait utilization --dbpath arg directory for datafiles【配置数据库所在的路径】 --diaglog arg 0=off 1=W 2=R 3=both 7=W+some reads --directoryperdb each database will be stored in a separate directory --journal enable journaling【启用日志】 --journalOptions arg journal diagnostic options --journalCommitInterval arg how often to group/batch commit (ms) --ipv6 enable IPv6 support (disabled by default) --jsonp allow JSONP access via http (has security implications)【允许通过http访问jsonp格式数据(有安全隐患)】 --noauth run without security --nohttpinterface disable http interface --nojournal disable journaling (journaling is on by default for 64 bit) --noprealloc disable data file preallocation - will often hurt performance --noscripting disable scripting engine --notablescan do not allow table scans --nssize arg (=16) . ns file size (in MB) for new databases --profile arg 0=off 1=slow, 2=all --quota limits each database to a certain number of files (8 default) --quotaFiles arg number of files allower per db, requires --quota --rest turn on simple rest api --repair run repair on all dbs --repairpath arg root directory for repair files - defaults to dbpath --slowms arg (=100) value of slow for profile and console log --smallfiles use a smaller default file size --syncdelay arg (=60) seconds between disk syncs (0=never, but not recommended) --sysinfo print some diagnostic system information --upgrade upgrade db if needed Windows Service Control Manager options: --install install mongodb service【安装Mongodb服务】 --remove remove mongodb service【删除Mongodb服务】 --reinstall reinstall mongodb service (equivilant of mongod --remove followed by mongod --install) --serviceName arg windows service name【Mongodb服务名称】 --serviceDisplayName arg windows service display name【Mongodb服务显示名称】 --serviceDescription arg windows service description --serviceUser arg user name service executes as --servicePassword arg password used to authenticate serviceUser Replication options: --fastsync indicate that this instance is starting from a dbpath snapshot of the repl peer --oplogSize arg size limit (in MB) for op log Master/slave options: --master master mode --slave slave mode --source arg when slave: specify master as <server:port> --only arg when slave: specify a single database to replicate --slavedelay arg specify delay (in seconds) to be used when applying master ops to slave --autoresync automatically resync if slave data is stale Replica set options: --replSet arg arg is <setname>[/<optionalseedhostlist>] Sharding options: --configsvr declare this is a config db of a cluster; default port 27019; default dir /data/configdb --shardsvr declare this is a shard db of a cluster; default port 27018 --noMoveParanoia turn off paranoid saving of data for moveChunk. this is on by default for now, but default will switch
发表评论
-
Mysql错误:Every derived table must have its own alias
2014-04-07 09:27 16973mysql执行多表查询时报错: [SQL] SELECT ... -
mysql procedure error:[Err] 1338 - Cursor declaration after handler declaration
2013-09-10 14:16 9888今天编写了一个mysql存储过程定义语句,在执行的时候报错: ... -
mysql乐观锁总结和实践
2013-05-08 12:13 121541上一篇文章《MySQL悲观锁总结和实践》谈到了MySQL悲观 ... -
mysql悲观锁总结和实践
2013-05-07 12:20 81755最近学习了一下数据库的悲观锁和乐观锁,根据自己的理解和网上 ... -
Mongodb Sharding Cluster搭建
2012-08-23 01:46 0Sharding架构介绍 Sharding是一种将海量数据 ... -
Mongodb性能监控
2012-08-22 00:42 118371.mongosniff工具 首先了解一下sniffer的 ... -
Mongodb高级管理命令
2012-08-21 01:24 37861.克隆collection 命令格式: >d ... -
Mongodb数据导出工具mongoexport和导入工具mongoimport介绍
2012-08-21 00:35 186804一、导出工具mongoexport Mongodb中的mon ... -
Mongodb MapReduce编程模型
2012-08-20 00:55 10874Mongodb官网对MapReduce介绍: Map/red ... -
Mongodb数据更新命令、操作符
2012-08-19 23:05 95793一、Mongodb数据更新命令 Mongodb更新有两个命令 ... -
Mongodb存储过程
2012-08-19 20:36 19407Mongodb支持存储过程的使用,存储过程可以接收和输出参数, ... -
Mongodb联合查询
2012-08-19 19:33 112500在关系型数据库中,通过连接运算符可以实现多个表联合查询。而非关 ... -
Mongodb后台daemon方式启动
2012-08-17 01:03 41527Mongodb可以通过命令行方式和配置文件的方式来启动,具体命 ... -
Mongodb主从复制
2012-08-15 01:04 3177主从复制是Mongodb最常用的复制方式。这种方式非常灵活,可 ... -
通过mongodump和mongorestore实现Mongodb备份和恢复
2012-08-14 01:19 83466Mongodb自带了mongodump和mongorestor ... -
Mongodb常用命令介绍
2012-08-13 01:09 25606查看命令的方式: 1.在shell中运行db.listCom ... -
REST is not enabled. use --rest to turn on.
2012-08-13 00:00 5304使用浏览器访问mongodb管理员接口:http://ipad ... -
Mongodb MapReduce Error:'out' has to be a string or an object
2012-08-12 19:32 4152最近在学习Mongodb,作为入门,选择了《Mongodb权威 ... -
MyBatis批量插入数据
2012-07-10 08:50 433795在程序中封装了一个List集合对象,然后需要把该集合中的实体插 ... -
MySQL报错: java.sql.SQLException: Column count doesn't match value count at row 1
2012-07-09 16:24 28438项目使用了Spring和MyBatis,在往mysql数据库里 ...
相关推荐
mongodb php distinct command --- mongoDb 常用命令
MongoDB的help命令和脚本的操作.pdf 学习资料 复习资料 教学资源
MongoDB 命令行界面 这是一个简单的 Bash CLI 脚本,用于管理本地mongod实例。 合理的 ... # Get MongoDB CLI help mongodb help # Start a mongod instance mongodb start # Stop a mongod instanc
一、MongoDB 数据库常用操作命令 1、Help查看命令提示 help db.help(); db.yourColl.help(); 2、切换/创建数据库 use raykaeso; 当创建一个集合(table)的时候会自动创建当前数据库 3、查询所有数据库 show dbs; 4...
我们可以通过mongod –help查看mongod的所有参数说明,以下是各参数的中文解释。 基本配置 代码如下: –quiet # 安静输出 –port arg # 指定服务端口号,默认端口27017 –bind_ip arg # 绑定服务IP,若绑定...
常用命令: mongod.exe --dbpath "d:\mongodb\data\db" --directoryperdb --logpath "d:\mongodb\data\logs" --logappend mongo.exe >show dbs >use memo //使用 数据库 memo >show collections //列出当前数据库的...
一、数据库常用命令1、Help查看命令提示 代码如下:helpdb.help();db.yourColl.help();db.youColl.find().help();rs.help();2、切换/创建数据库 代码如下:use yourDB; 当创建一个集合(table)的时候会自动创建当前...
mongod有很多可配置的选项,我们通过mongod –help可以查看所有选项,这里仅介绍一些主要选项: 代码如下: –dbpath: 缺省情况下数据库的数据目录为/data/db。对于Windows平台,如果当前的可执行文件位于D盘...
主要介绍了MongoDB中的主从同步配置和mongod相关启动命令讲解,文中也罗列了很多其他常用的mongod命令参数,需要的朋友可以参考下
通过-h --help命令访问帮助。 所有操作都有相关的帮助文本。 mongobar --help mongobar backup --help 组态 mongobar带有默认配置,该默认配置定义了在禁用身份验证的情况下在localhost:27017上运行的MongoDB...
介绍 MongoDB 不强制执行任何模式,因此文档不必在一个集合内使用相同的模式。 但它建议使用某种模式来防止滥用文档。 安装 小费 小费 要测试是否安装了数据库,您可以通过运行来检查: mongod --version 启动数据库...
一、Mongodb导出工具mongoexport ... [root@localhost mongodb]# ./bin/mongoexport --help Export MongoDB data to CSV, TSV or JSON files. options: --help produce help message -v [ --verbose ] b
Mongob-MongoDB的收集到收集备份工具 特征 可调备份率。 支持MongoDB实例或Bz2压缩... 请注意,如果您不使用virtualenv,则可能需要以root用户身份运行上述命令。 用法 # Getting help mongo_backup --help # Runni
运行node mdb help查看所有命令以及如何使用它 如何使用 用法: node mdb help或node mdb --help 显示帮助 node mdb started 显示正在运行的 mongo 进程 node mdb start {--in LOCATION} 仅当此位置存在时才在...
1、Help查看命令提示 help db.help(); db.yourColl.help(); db.youColl.find().help(); rs.help(); 2、切换/创建数据库 use yourDB; 当创建一个集合(table)的时候会自动创建当前数据库 3、查询所有数据库 show ...
概述 mongoexport命令行用于数据的导出,默认导出的... –help produce help message -v [ –verbose ] be more verbose (include multiple times for more verbosity e.g. -vvvvv) -h [ –host ] arg mo
mongod –help for help and startup options mongod: symbol lookup error: mongod: undefined symbol: _ZN7pcrecpp2RE4InitEPKcPKNS_10RE_OptionsE 下面安装mongodb-10gen来解决这个错误: 获取下载10-gen公共...
这个小清单列出了MongoDB经常使用和容易忘记的一些操作,命令和技术。启动MongoDB的选项可以通过命令行或者配置文件设置,两者的语法稍微有点不同,这里有一个三种选项的设置例子:在mongod下运行--help可以列出所有...
Dockerized MongoDB Stitch CLI介绍这是的Dockerized版本。 该项目将编译Stitch二进制文件,并让您运行它而没有任何Go或NPM依赖性问题。 它还提供了容器的安全隔离。用法要生成图像: docker build -t stitch-cli ....