[Mongo] couldn't connect to server 127.0.0.1: 27017 at src/mongo/shell/mongo. js: L112, 201727017
Today, when mongo was started, an error occurred. My environment is Windows 7.
E:\server>mongoMongoDB shell version: 2.4.5-pre-connecting to: testMon Sep 22 13:35:05.335 JavaScript execution failed: Error: couldn't connect toserver 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112exception: connect failed
The solution is to delete the mongod. lock file under mongodata of mongo.
Restart mongo.
Refer:
Install mongo in Windows (you can specify external data)
Http://stackoverflow.com/questions/16120397/errr-mongo-jsl112-error-couldnt-connect-to-server-127-0-0-127017-at-src-mon (Solution to the same problem in linux)
This article is from the "orangleliu notebook" blog, please be sure to keep this http://blog.csdn.net/orangleliu/article/details/39475285
Error: couldn't connect to server 127001: 27017 src/mongo/shell/mongojs145
Didn't you set the listening port?
Executing cmdexe showed that cocould not connect server 127001 shell/cmdjs: 79 exception: connection failed
This is the cause of the loss of system files on your computer. You can use Kingsoft guard to restore files ..