報錯如下: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刪除。