Mongo连接失败

时间:2017-02-23 18:53:13

标签: php mongodb mamp pecl

我在我的本地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

有什么想法吗?

谢谢!

0 个答案:

没有答案