Turn on the Mongod service (MONGO run Error: Failed to connect 127.0.0.1:27017,reason:errno:10061 cannot connect because the target computer is actively rejecting)

Source: Internet
Author: User

Issue: MONGO run Error: Failed to connect 127.0.0.1:27017,reason:errno:10061 Unable to connect due to target computer actively rejecting

In the MongoDB installation process encountered problems, first understand the MongoDB installation steps

1. Download the corresponding version on the MongoDB website, https://www.mongodb.org/downloads

2. Unzip the downloaded file to the C drive or the D packing directory

3. Use the cmd command mkdir data to create the data folder under the extracted MongoDB (or create it directly under Windows Management)

4. Create the DB and log folders under the Data folder, the DB is used to store it, log logs

Program Start Mode:

1. Start the Mongod service, the D:\mongodb\bin under the direct double hit Open mongod can also, under the CMD start can also.

2. Start MONGO

I got an error when I started MONGO: Failed to connect 127.0.0.1:27017,reason:errno:10061 cannot connect because the target computer is actively rejecting

Cause: You must start Mongod before you can start MONGO

Start Mongod as a Windows service.

(This section is quoted from article: http://www.cnblogs.com/czxu/archive/2011/06/13/2080162.html)

Description: There is a description of the installation, the following are some parameters as a Windows service

Turn on the Mongod service (MONGO run Error: Failed to connect 127.0.0.1:27017,reason:errno:10061 cannot connect because the target computer is actively rejecting)

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.