mongo - couldn't connect to server 127.0.0.1:27017

后端 未结 30 2394
故里飘歌
故里飘歌 2020-11-27 09:43

I am coming from riak and redis where I never had an issue with this services starting, or to interact.

This is a pervasive problem with mongo and am rather clueless

30条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 10:46

    if all the solution above doesn't work out perhaps then this might be one to help. Somewhere down the line you may have made connection to your local mongodb database via vagrant boxes.

    1. vagrant up and then ssh into your vagrant machine in which you've made connection with mongodb (vagrant ssh vagrant_box_name)
    2. comment out the bind_ip line from /etc/mongod.conf using # (sudo nano /etc/mongod.conf )
    3. restart your mongodb daemon service (sudo service mongod restart) voila...

提交回复
热议问题