我需要将独立集转换为副本集
我正在使用以下文档:
http://docs.mongodb.org/manual/tutorial/convert-standalone-to-replica-set/
执行以下操作后:
mongod --port 27017 --replSet rs0
在终端中显示以下内容
Thu Nov 15 10:07:57 [rsStart] trying to contact MY_HOST.local:27017
Thu Nov 15 10:07:57 [rsStart] couldn't connect to MY_HOST.local:27017:
couldn't connect to server MY_HOST.local:27017
Thu Nov 15 10:07:57 [rsStart] replSet can't get local.system.replset
config from self or any seed (yet)
在 mongo shell 中,rs.initiate() 和 rs.status() 的命令结果如下:
> rs.initiate()
{
"startupStatus" : 4,
"info" : "rs0",
"errmsg" : "all members and seeds must be reachable to initiate set",
"ok" : 0
}
> rs.status()
{
"startupStatus" : 4,
"errmsg" : "can't currently get local.system.replset config from self
or any seed (EMPTYUNREACHABLE)",
"ok" : 0
}
请我需要帮助并告诉我我做错了什么或我错过了什么
感谢您的关注