MongoDB bind_ip won't work unless set to 0.0.0.0

后端 未结 12 831
遇见更好的自我
遇见更好的自我 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:24

    In my case, none of the options above worked. The specification that finally worked for me was:

    bind_ip= [ ]
    
    

    An example could be:

    bind_ip= [127.0.0.1 10.0.0.4]
    
    

    (Notice that there is no comma between the two directions)

    I have MongoDB 2.6.10 on Ubuntu 16.4.5 (LTS)

提交回复
热议问题