yapılandırırken replset yapılandırmasında kendini bulamıyorum Linux üzerinde ayarlanmış 3 düğümlü bir mongodb kopyası yapıyorum. Sunucuyu başlatmak için aşağıdaki yapılandırmaAşağıdaki hatayı alma: 13279: yineleme kümelerini
'u kullanıyorum. Sunucuya başladım ve mongo komut satırı aracını kullanarak sunucuya bağlandığımda. Ben rs.initiate()
ne zaman
Ben
{
"info2" : "no configuration explicitly specified -- making one",
"me" : "host-ip:27017",
"ok" : 0,
"errmsg" : "couldn't initiate : can't find self in the replset config"
}
Ben
initiate()
için cfg sağlayan ve hala aynı hatayı alıyorum çalıştı olsun.
Günlük dosyasında bu gösterilir.
Mon Oct 14 13:27:33.218 [rsStart] replSet info no seed hosts were specified on the --replSet command line
Mon Oct 14 13:27:34.118 [conn1] run command admin.$cmd { replSetInitiate: { _id: "rs1", members: [ { _id: 0.0, host: "host-ip:27017" } ] } }
Mon Oct 14 13:27:34.118 [conn1] replSet replSetInitiate admin command received from client
Mon Oct 14 13:27:34.118 [conn1] replSet replSetInitiate config object parses ok, 1 members specified
Mon Oct 14 13:27:34.118 [conn1] getallIPs("host-ip"): [ip address]
Mon Oct 14 13:27:34.118 BackgroundJob starting: ConnectBG
Mon Oct 14 13:27:34.118 [conn1] User Assertion: 13279:can't find self in the replset config
Mon Oct 14 13:27:34.119 [conn1] replSet replSetInitiate exception: can't find self in the replset config
Mon Oct 14 13:27:34.119 [conn1] command admin.$cmd command: { replSetInitiate: { _id: "rs1", members: [ { _id: 0.0, host: "host-ip:27017" } ] } } ntoreturn:1 keyUpdates:0 locks(micros) W:230 reslen:107 1ms
zaman bu hatayı gidermek için ne yapmalıdır?
Not kontrol ad ile adres. – user2704732