Batch Processing bat file solution mongodb detailed error: 10061 unable to connect because the target computer is actively rejected, mongodb10061

Source: Internet
Author: User

Batch Processing bat file solution mongodb detailed error: 10061 unable to connect because the target computer is actively rejected, mongodb10061

I am not really good at solving this problem in the form of batch processing files, thanks to Uncle warm. I found that the dos code written is very different from the batch file. The following are my achievements in solving this problem. Of course, I cannot do without the help of Xiaowen. The following are some absolute paths and relative paths written in the batch processing file.


First, I try the following method, write it in the batch file, and then assign values to the 1% parameter in the dos environment.


However, if this method is used with caution, an endless loop may occur.

After improvement, use

Mkdir f: \ project \ log & mkdir f: \ project \ dataecho mkdir completedf:> f: \ project \ mongo. configecho touch config completedf:> f: \ project \ log \ mongo. logecho logfile created completedecho dbpath = f: \ project \ data> f: \ project \ mongo. configecho logpath = f: \ project \ log \ mongo. log> f: \ project \ mongo. configecho config file writed completedstart f: \ project \ mongodb \ bin \ mongod.exe -- config f: \ project \ mongo. config

Then you can run it directly. Then you can find cmd.exe.


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.