我是 MongoDB 服务器的新手。我的系统中安装了 MongoDB 服务器 3.6.6。当我尝试连接到 MongoDB 服务器时,它显示以下错误:
MongoDB shell version v3.6.6
connecting to: mongodb://127.0.0.1:27017
2018-08-08T10:57:20.242+0530 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2018-08-08T10:57:20.242+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
当我检查并尝试启动 MongoDB 服务时,我得到了以下状态: