代码之家  ›  专栏  ›  技术社区  ›  Parsaria

即使在同一个局域网中,我也无法连接到mongodb

  •  0
  • Parsaria  · 技术社区  · 6 年前

    mongod.cfg 在里面 :

    # network interfaces
    net:
      port: 27017
      bindIp: 127.0.0.1,0.0.0.0,192.168.1.120
    

    但即使从本地网络,我也无法访问服务器: enter image description here enter image description here

    enter image description here

    1 回复  |  直到 6 年前
        1
  •  2
  •   ArnavRay    6 年前

    这可能是防火墙问题。如果防火墙正在运行,请停止它。还要检查MongoDB服务是否在0.0.0.0上运行。