https://docs.mongodb.com/manual/reference/configuration-options/

 

systemLog:
    destination: file
    path: D:\Program Files\MongoDB\Server\3.6\log\mongod.log
storage:
    dbPath: D:\Program Files\MongoDB\Server\3.6\DATA
net:
  bindIp: 127.0.0.1,192.168.0.100

 

注意mongoserver的bindIp默认为127.0.0.1,即只监听本地端口,并不监听其他网络端口,此时网络中其他主机是无法访问mongo服务的。

 

相关文章:

  • 2022-02-22
  • 2021-12-02
  • 2022-02-09
  • 2022-02-10
  • 2022-02-09
  • 2021-07-20
  • 2021-10-12
猜你喜欢
  • 2021-07-19
  • 2021-11-17
  • 2021-12-09
  • 2021-12-24
  • 2021-12-24
  • 2021-08-13
  • 2021-07-26
相关资源
相似解决方案