スタンドアロンをレプリカ セットに変換する必要がある
次のドキュメントを使用しています。
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 シェルでは、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
}
助けが必要な場合は、私が間違っているか、何が欠けているか教えてください
ご清聴ありがとうございました