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.