mongodb创建副本集命令

mongodb创建副本集命令

 

./mongod --replSet spock --dbpath ../data --smallfiles

 

> config ={
... "_id":"spock",
... "members":[
... {"_id":0,"host":"192.168.100.25:27017"},
... {"_id":1,"host":"192.168.100.30:27017"},
... {"_id":2,"host":"192.168.100.37:27017"}
... ]
... }

posted @ 2014-10-15 16:27  唾手可得的树  阅读(203)  评论(0编辑  收藏  举报