1、启动一个新Shard Server 进程
- [root@localhost~]#mkdir/data/shard/s2
- [root@localhost~]#/Apps/mongo/bin/mongod--shardsvr--port20002--dbpath/data/shard/s2
- --fork--logpath/data/shard/log/s2.log--directoryperdb
- alloutputgoingto:/data/shard/log/s2.log
- forkedprocess:6772