报错如下:mongodb shard could not find host matching read preference {mode \"primary\" for set shard1

检查副本集shard1

主库正常,从库show dbs报错

报错误如下:not master and slaveOK=fal

最后发现是:配置的IP写错了

 posted on 2020-02-20 11:58  xibuhaohao  阅读(1902)  评论(0编辑  收藏  举报