我需要轉換一個獨立的副本集轉換一個獨立的副本集,不行
我使用下列文件:
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)
在蒙戈外殼,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
}
請我需要幫助,告訴我,我做錯了還是什麼我失去了
感謝您的關注
的名稱是 「MY_HOST.local」 解析? – Stennie