1、设置配置文件
mongod.exe --config D:\mongodb_r0\mongo.config
2、以windows服务方式启动
mongod --dbpath D:\mongo\data\r0 --logpath=D:\mongo\log\r0.log --install
3、指定启动服务端口
mongod --dbpath D:\mongo\data\r0 --logpath=D:\mongo\log\r0.log --rest --port 29010