报错如下:mongodb shard could not find host matching read preference {mode \"primary\" for set shard1
检查副本集shard1
主库正常,从库show dbs报错
报错误如下:not master and slaveOK=fal
最后发现是:配置的IP写错了
报错如下:mongodb shard could not find host matching read preference {mode \"primary\" for set shard1
检查副本集shard1
主库正常,从库show dbs报错
报错误如下:not master and slaveOK=fal
最后发现是:配置的IP写错了
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。