天天看點

windows上MongoDB遠端通路配置

今天用另一台機器上的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