Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused

前端 未结 27 2542
孤街浪徒
孤街浪徒 2020-12-12 15:06

while trying this mongo command in ubuntu I am getting this error.

    ritzysystem@ritzysystem-Satellite-L55-A:~$ mongo
    MongoDB shell version: 2.6.1
             


        
27条回答
  •  抹茶落季
    2020-12-12 15:16

    Run the following command :

    sudo rm /var/lib/mongodb/mongod.lock
    sudo service mongod restart
    

    Connection refused to MongoDB errno 111

    MacOS:

    rm /usr/local/var/mongodb/mongod.lock  
    sudo service mongod restart
    

提交回复
热议问题