1、修改已存在副本
replSetReconfig should only be run on PRIMARY, but my state is SECONDARY; use the \"force\" argument
cfg=rs.conf();
cfg.members[0].host='172.17.0.8:27018'
rs.reconfig(cfg,{force:true});
rs.status();
rs.add("172.17.0.8:27019")
2、报错(半角引号问题)
Attempting to initiate a replica set with name rs_configsvr, but command line reports “rs_configsvr”; rejecting
3.NotMasterNoSlaveOk(show dbs)
rs.slaveOk()