mongo在Ubuntu 16.04上拒绝连接

时间:2018-03-27 12:57:14

标签: mongodb

Ubuntu 16.04

在终端上运行mongo的控制台输出:

MongoDB shell version v3.6.3
connecting to: mongodb://127.0.0.1:27017
2018-03-27T18:23:41.006+0530 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2018-03-27T18:23:41.006+0530 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:251:13
@(connect):1:6
exception: connect failed

1 个答案:

答案 0 :(得分:0)

This answer @CodeGench帮助解决了我的问题。在此之前,我已经尝试过卸载和重新安装以及各种不起作用的东西。