couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145

当直接执行./mongo

出现这样的提示:couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145

 

解决:

执行./mongod --dbpath=/data/mong/db

启动后再执行 ./mongo  则可以了

posted on 2016-09-18 10:20  悄悄的来,匆匆的走  阅读(878)  评论(0编辑  收藏  举报

导航