Unable to connect to mongo on remote server

前端 未结 5 1734
闹比i
闹比i 2021-02-05 10:17

I have installed mongo on machine1(Ubuntu 14.04.3 LTS server) in my local network. I have also opened the port 27017 as mentioned in this guide using f

5条回答
  •  独厮守ぢ
    2021-02-05 10:58

    With mongoDB server version 3.6.4, Ubuntu 16.4.4 I solved this by setting the net section in /etc/mongod.conf like this:

    net:
      port: 27017
      bindIpAll: true
    #  bindIp: 127.0.0.1
    

提交回复
热议问题