解决couldn't connect to server 172.21.4.208:27 017 at src/mongo/shell/mongo.js:147
Posted 张正--博客园
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决couldn't connect to server 172.21.4.208:27 017 at src/mongo/shell/mongo.js:147相关的知识,希望对你有一定的参考价值。
使用mongo命令访问数据库,出现如下所示的错误:
直接删除mongod.lock,
rm -f /usr/local/mongodb/data/db/mongod.lock
注:使用此方法数据库内容会被删除。
其他方法访问:https://blog.csdn.net/wangli61289/article/details/44459467
然后再启动mongodb
service mongodb start
以上是关于解决couldn't connect to server 172.21.4.208:27 017 at src/mongo/shell/mongo.js:147的主要内容,如果未能解决你的问题,请参考以下文章
Couldn't connect to host, port: smtp.163.com, 25; timeout -1;
mongodb使用mongo报错: Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed:
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
《转》couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145
Couldn‘t connect to session bus: Did not receive a reply. Possible causes include: the remote applic