nstance is starting from a dbpath snapshot of the repl peer --autoresync automatically resync if slave data is stale --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 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
4.结果
- # mongod --shardsvr --port 9999
- Tue May 24 08:14:04 [initandlisten] MongoDB starting : pid=13314 port=9999 dbpath=/data/db/ 64-bit
- Tue May 24 08:14:04 [initandlisten] db version v1.8.1, pdfile version 4.5
- Tue May 24 08:14:04 [initandlisten] git version: a429cd4f535b2499cc4130b06ff7c26f41c00f04
- Tue May 24 08:14:04 [initandlisten] build sys info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
- Tue May 24 08:14:04 [initandlisten] waiting for connections on port 9999
- Tue May 24 08:14:04 [websvr] web admin interface listening on port 10999
本文出自 “记录点点滴滴” 博客,请务必保留此出处http://lixiangning.blog.51cto.com/1253969/571728
|