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

前端 未结 27 2565
孤街浪徒
孤街浪徒 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:21

    For those with Windows. I had the same problem on Windows. Restarting Mongodb service solves this.

    Following are the steps to restart on Windows:

    i). Go To "Services" on Windows.

    ii). Search for "MongoDB" in the list of services.

    iii). Right click "start"/"restart" depending on your status.

    iv). After the status turns to "running" check if issue is resolved by running "Mongo" or connecting your Mongo client.

提交回复
热议问题