"errmsg" : "already initialized", "code" : 23, "codeName" : "AlreadyInitialized", "$clusterTime" : { "clusterTime" : Timestamp(1577706032, 1), "signature" : { "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), "keyId" : NumberLong(0) } } } mongoset:PRIMARY> 1. 2. 3. ...
移除前,添加时会报错,报错信息如下; "info":"try querying local.system.replset to see current configuration","ok":0,"errmsg":"already initialized","code":23,"codeName":"AlreadyInitialized" 移除原因的副本信息,执行如下命令; use local db.system.replset.remove({}) [执行后,重新下服务] Problem 5...
启动两个实例(配置) 提前说明,如果使用 rs. 指令配置实例,想重新配置,出现 ”"errmsg" : "already initialized"“,可以使用 rs.reconfig 清除配置。 rsconf = rs.conf rsconf.members = [{_id:1, host:"本机的ip:27017"}] rs.reconfig(rsconf, {force:true}) 在Secondary 机器,执行命令停止运行: mong...
启动两个实例(配置) 提前说明,如果使用rs.指令配置实例,想重新配置,出现 ”"errmsg" : "already initialized"“,可以使用rs.reconfig()清除配置。 rsconf = rs.conf() rsconf.members = [{_id: 1, host: "本机的ip:27017"}] rs.reconfig(rsconf, {force: true}) 1. 2. 3. 在Secondary 机器,执行...
{"_id":2,"host":"localhost:27119"}]}rs.initiate(rsconf){"operationTime":Timestamp(1579231067,1),"ok":0,"errmsg":"already initialized","code":23,"codeName":"AlreadyInitialized","$clusterTime":{"clusterTime":Timestamp(1579231067,1),"signature":{"hash":BinData(0,"AAAAAAAAAAAAAAAAAAAA...
(rsconf){"operationTime":Timestamp(1577706032,1),"ok":0,"errmsg":"already initialized","code":23,"codeName":"AlreadyInitialized","$clusterTime":{"clusterTime":Timestamp(1577706032,1),"signature":{"hash":BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),"keyId":NumberLong(0)}}}mongoset:...
{"info":"try querying local.system.replset to see current configuration","ok": 0,"errmsg":"already initialized","code": 23,"codeName":"AlreadyInitialized"} # 建立超级用户adminuse admin db.createUser( { user:'admin',pwd:'@admin', ...
>rs.initiate(){"info2":"no configuration explicitly specified -- making one","me":"hadoop1.abc.com:27017","info":"try querying local.system.replset to see current configuration","ok":0,"errmsg":"already initialized","code":23}>rs.status(){"state":10,"stateStr":"REMOVED","uptime"...
replocal:PRIMARY> rs.initiate({_id: "rs0", members: [{ _id: 0, host : "localhost:27017" }]}) { "ok" : 0, "errmsg" : "already initialized", "code" : 23, "codeName" : "AlreadyInitialized", "$clusterTime" : { "clusterTime" : Timestamp(1658930022, 1), "signature" : { "...
{ "operationTime" : Timestamp(1534818928, 1), "ok" : 0, "errmsg" : "already initialized", "code" : 23, "codeName" : "AlreadyInitialized", "$clusterTime" : { "clusterTime" : Timestamp(1534818928, 1), "signature" : { "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), "key...