Start MONGO because the target computer is actively rejecting, unable to connect--mongodb connection error Resolution

Source: Internet
Author: User

First, let's take a look at the map to see if the parents have the same connection problem. I have met two times and felt it necessary to record it. Ready for future viewing.


Analysis reason: This is the start of the Shell editor when the problem occurs, I analyze he may be a server connection problem.

Workaround: In the MONGO installation file, create a mongo.config file that reads as follows:


If you start MONGO every time, it will be a very troublesome thing to start from CMD. It is convenient to start with a batch file.

First understand the order, start the Mongod application first. Then run the config file that you just created. Finally run the Mongo.exe file

This allows you to create two bat files.

Named Mongodb.bat and Mongodb27017.bat respectively.


Mongodb.bat


Mongodb27017.bat

At last. So the problem is solved. Again this process, first of all do not hate the problem, no problem of learning is no ups and downs. That's not the point. In your analysis to solve the results of the process, must have been a calm and toughness. Come on!

Start MONGO because the target computer is actively rejecting, unable to connect--mongodb connection error Resolution

Related Article

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.