secrethaha
2018-10-18 11:07
imooc:PRIMARY> rs.reconfig(config)
{
"operationTime" : Timestamp(1539831832, 1),
"ok" : 0,
"errmsg" : "Support for replication protocol version 0 was removed in MongoDB 4.0. Downgrade to MongoDB version 3.6 and upgrade your protocol version to 1 before upgrading your MongoDB version",
"code" : 103,
"codeName" : "NewReplicaSetConfigurationIncompatible",
"$clusterTime" : {
"clusterTime" : Timestamp(1539831832, 1),
"signature" : {
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
"keyId" : NumberLong(0)
}
}
}
imooc:PRIMARY>
这个应该怎么解决
注意选择的延迟节点不要是主节点
config里加上protocolVersion : 1就好了
我也遇到了!!!
MongoDB复制集—快速搭建复制集
7746 学习 · 22 问题
相似问题