MongoDB bind_ip won't work unless set to 0.0.0.0

后端 未结 12 826
遇见更好的自我
遇见更好的自我 2020-12-04 23:43

I really tried, even reinstall the MongoDB.

And it\'s the same to MongoDB bind_ip error: bind() failed errno:99 Cannot assign requested address for socket

It

12条回答
  •  感情败类
    2020-12-05 00:28

    Hey I am using MongoDB shell version: 3.2.6 .

    bindIP = 127.0.0.1,192.168.0.50 
    bindIP = [127.0.0.1,192.168.0.50]
    bind_ip = 192.168.6.38 
    

    not working , i have edited mongod.conf using this command

    sudo -i gedit /etc/mongod.conf file 
    

    And Changed bind_ip = 0.0.0.0 to bind_ip = 192.168.6.38 it working fine ....

提交回复
热议问题