若报错:QUERY Error: listDatabases failed:{ "note" : "from execCommand", "ok" : 0, "errmsg" : "not master" }
先执行rs.slaveOk()即可
先执行rs.slaveOk()即可
2017-09-18