MongoDB集群配置(sharding with replica set)(二)

2014-11-24 18:44:40 · 作者: · 浏览: 1
B",
"members" : [
{
"_id" : 0,
"host" : "127.0.0.1:20000"
},
{
"_id" : 1,
"host" : "127.0.0.1:20001"
},
{
"_id" : 2,
"host" : "127.0.0.1:20002"
}
]
}
> rs.initiate(config);