今天用另一台机器上的MongoDB,但是使用本地连接时,没问题

windows上MongoDB远程访问配置

 换成IP地址时,出现

windows上MongoDB远程访问配置

解决的方法,修改配置文件

systemLog:
    destination: file
    path: d:/Mongodata/log/mongod.log
storage:
    dbPath: d:/Mongodata
security:
     authorization: enabled
net:
  port: 27017
  bindIp: 127.0.0.1,0.0.0.0

重启MongoDB

windows上MongoDB远程访问配置

更多配置查看 https://docs.mongodb.com/manual/reference/configuration-options/

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2022-02-14
  • 2021-09-09
  • 2021-12-19
  • 2021-08-08
  • 2021-05-26
  • 2021-07-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-06
  • 2021-08-04
  • 2021-06-15
相关资源
相似解决方案