【发布时间】:2017-07-14 09:59:04
【问题描述】:
我在本地 Mac 上运行 mongodb,它与 MAMP 结合运行良好。但是它不起作用,当我在终端中调用它时,我现在得到了这个:
$ mongo
MongoDB shell version: 3.2.11
connecting to: test
2017-02-23T18:43:39.841+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
2017-02-23T18:43:39.842+0000 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:229:14
@(connect):1:6
exception: connect failed
有什么想法吗?
谢谢!
【问题讨论】: