net start MongoDB MongoDB service failed to start error report 100

When we start to install MongoDB service reported 100 errors.
Problem Description:

1. Direct News service did not start, reported 100 errors described here Insert Picture

2. When the start when he started the service, but said he did not stop in time to start the service

In both cases will make your MongoDB service can not start, there may be as follows:

1. First, there is no net start MongoDB command will be executed by the administrator of this situation, this time only need to win + x + a character into the administrator command execution command.

2. mongodb service does not shut down, resulting in mongodb was locked. This time entering data (some people are db) directory, delete mongod.lock file, and then restart the service.

3. If the above does not resolve the problem, then the problem may be hidden deeper, possibly personal improper operation.

Take the problems of my own, when initially created mongod.cfg file, due to the effect of the path did not pay attention, the original path is d: \ data \ mongo \ db directory written in the d: \ data \ mongod \ db path, and the generated configuration file dbpath becomes d: \ data \ mongod \ db, but I do not exist in the directory d: \ data \ mongod \ db directory, so a direct result of the service can not start, this very fatal mistake, the configuration file dbpath in d: \ data \ mongo \ db removed on the line.

Guess you like

Origin www.cnblogs.com/guoyinghome/p/11260181.html