无法连接到127.0.0.1:27017,原因:errno:111连接被拒绝

无法连接到127.0.0.1:27017,原因:errno:111连接被拒绝

问题描述:

在ubuntu
尝试此mongo命令时,我收到此错误。

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

    ritzysystem@ritzysystem-Satellite-L55-A:~$ mongo
    MongoDB shell version: 2.6.1
    connecting to: test
    2014-10-06T12:59:35.802+0530 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
    2014-10-06T12:59:35.802+0530 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
    exception: connect failed

我如何纠正这是任何人都有同样的问题。

how can I rectify this is anyone had the same problem.

谢谢大家我试过运行的mongo它不运行终于我发现没有我的硬盘中的空间我清空了一些空间,最后重新安装它,安装方式与mongodb doc一样安装,最后重新启动服务器并正在运行。

thank you everyone I tried running mongo it was not running finally I found there was no space in my hard disc I emptied some of the space and finally re installed it the same installation procedure as followed to install as given in mongodb docs finally restarted the server and it is running.

https://docs.mongodb .org / manual / tutorial / install-mongodb-on-ubuntu