Unable to connect to mongo on remote server

前端 未结 5 1715
闹比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:40

    I have tried a different way to solve this issue. I have changed the config file from

    bind_ip = 127.0.0.1
    #port = 27017
    

    to

    bind_ip = 0.0.0.0
    #port = 27017
    

    Hope it helps. Happy coding ;)

提交回复
热议问题