摘要: @set mongod=..\bin\mongod.exeset keyFile=key.keyif not exist %keyFile% (echo 123456>%keyFile%)md %1 2>nul 1>nul%mongod% --port %1 --replSet %2 --dbpath %1 --logpath %1\_output_%1.log %3 %4 %5 %6::接着运行↓config_rs1 = { _id: "rs", members: [{ _id: 0, host: "127.0.0.1:27017", 阅读全文
posted @ 2013-08-21 17:04 Arliang 阅读(207) 评论(0) 推荐(0) 编辑