MAC OS
$ mongo
MongoDB shell version: 3.0.7
connecting to: test
2015-10-25T14:32:57.535+0800 W NETWORK Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
2015-10-25T14:32:57.537+0800 E QUERY Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed
at connect (src/mongo/shell/mongo.js:179:14)
at (connect):1:6 at src/mongo/shell/mongo.js:179
exception: connect failed
之前一直都可以,自从升级了 captain 后...
搜索一圈后无果,不知道是什么原因,特来求助。
1
armnotstrong 2015-10-25 14:56:06 +08:00
第一步不应该先 nc -zv localhost 27017 看看端口开了么?服务起来了么?
|
2
yimity 2015-10-25 20:41:08 +08:00 via iPhone
对啊,你不确定下服务起来了没?
|