MongoDB detailed error:10061 Unable to connect the solution because the target computer is actively rejecting

Source: Internet
Author: User
Tags log log

MongoDB (32-bit): Choose your own version

Set up the following two folders in parallel with MongoDB data and log.

Then build Mongo.config.

In the Mongo.config configuration file, enter:

# #数据文件

Dbpath=f:\data

# #日志文件

Logpath=f:\log\mongo.log

and create a mongo.log log file under the log folder.

The above configuration is best written in txt before changing the suffix name.

Then open cmd, enter

Your MongoDB bin path +mongod.exe--config E:\mongo.config

Do not turn off this cmd window!!

Also open a CMD window

That's OK.

MongoDB detailed error:10061 Unable to connect the solution 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.