2017-02-23 261 views
1

我在本地mac上運行mongodb,它與MAMP結合運行良好。然而,它不工作,當我在終端打電話時,我現在得到這個:Mongo連接失敗

$ 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 : 
[email protected]/mongo/shell/mongo.js:229:14 
@(connect):1:6 

exception: connect failed 

任何想法?

謝謝!

回答

0

mongo已關閉,可以運行mongod查看初始化失敗的位置