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

检查副本集shard1

主库正常,从库show dbs报错

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

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-04
  • 2022-12-23
  • 2022-02-17
  • 2021-05-17
  • 2022-12-23
  • 2021-07-13
相关资源
相似解决方案