无法连接到127.0.0.1:27017,原因:errno:111连接被拒绝 [英] Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused

查看:11714
本文介绍了无法连接到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

这篇关于无法连接到127.0.0.1:27017,原因:errno:111连接被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆