今天在启动mongo时候出现了一个错误,我的是win7环境。
E:\server>mongo MongoDB shell version: 2.4.5-pre- connecting to: test Mon Sep 22 13:35:05.335 JavaScript execution failed: Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112 exception: connect failed
重启mongo就好了。
参考:
http://stackoverflow.com/questions/16120397/errr-mongo-jsl112-error-couldnt-connect-to-server-127-0-0-127017-at-src-mon (linux下同样问题的解决)
本文出自 “orangleliu笔记本” 博客,请务必保留此出处 http://blog.csdn.net/orangleliu/article/details/39475285
[Mongo]couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112
原文:http://blog.csdn.net/orangleliu/article/details/39475285