【发布时间】:2016-02-18 16:21:52
【问题描述】:
我在配置 Mongodb 分片集群时出错。
我尝试了rs.add("127.0.0.1:27002")、rs.add("loclahost:27002") 和rs.add("hostname:27002") 进行分片的所有可能性
但我收到错误:
{
"ok" : 0,
"errmsg" : "Either all host names in a replica set configuration must be localhost references, or none must be; found 1 out of 2",
"code" : 103
}
【问题讨论】: