无法链接mongodb,附上错误log

MongoDB shell version v3.4.2
connecting to: mongodb://127.0.0.1:27017
2017-03-01T12:06:59.013+0800 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2017-03-01T12:06:59.015+0800 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:237:13
@(connect):1:6
exception: connect failed

泛舟湖上清波郎朗
浏览 927回答 2
2回答

潇潇雨雨

你的mongodb启动了吗

哈士奇WWW

楼上的回答是正解。MongoDB没有启动!注意: connect failed
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

MongoDB