[Mongo] couldn & #39; t connect to server 127.0.0.1: 27017 at src/mongo/shell/mongo. js: L112, 201727017

Source: Internet
Author: User

[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 ..
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.