Mongodb集群搭建的三种方式

地址:https://blog.csdn.net/luonanqin/article/details/8497860

从库问题:

2020-11-13T11:36:53.756+0800 E QUERY [thread1] Error: listCollections failed: {
"operationTime" : Timestamp(1605238610, 1),
"ok" : 0,
"errmsg" : "not master and slaveOk=false",
"code" : 13435,
"codeName" : "NotMasterNoSlaveOk",
"$clusterTime" : {
"clusterTime" : Timestamp(1605238610, 1),
"signature" : {
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
"keyId" : NumberLong(0)
}
}
} :

解决方法:https://www.cnblogs.com/heiing/archive/2012/08/04/2622953.html

原文地址:https://www.cnblogs.com/Moooo/p/13968652.html