When installing MongoDB database, there may be slow to install, and then cancel the installation after time again to re-install, the installation can not start the service in the last step of the phenomenon may occur
This situation directly click Ignore, after the installation is complete, open a DOS window, use this command to delete MongDB service
sc delete MongoDB
later remove ourselves reinstall a MongoDB service on it, open a console window, type in the bin installation directory command as shown in FIG.
mongod --dbpath = E: \ MongoDB \ data \ db --logpath = E: \ MongoDB \ log \ MongoDB.log --install --serviceName "MongoDB"
execution results are as follows:
Then enter net start MongoDB start the service
execution results as shown below:
So that our MongDB database can be a normal use.