before today, after the installation of MongoDB, the start of the service this morning when the start of the failure, the following error:
Error:
Error 2: The system cannot find the specified file
Thinking Process:
Yesterday when the test, has installed two times MongoDB, and then I deleted (note is not uninstalled) a MongoDB folder, the current service is not the default MongoDB installation address error?
To view the properties of the service, the address of MONGO is the address that has been deleted, not the one currently used. The current address is: E:\Program files\mongodb\bin
How to resolve:
First uninstall the original installation, install the new again.
MONGO Uninstall:
Uninstall: Mongod.exe--remove--servicename "MongoDB"
MongoDB Installation as service:
installation: Mongod.exe--install--logpath= "E:\Program files\mongodb\data\log\log.txt" --dbpath= "E:\Program files \mongodb\data\db "
After installation refresh service, address changes:
Start MongoDB service again, boot failed with 1607 error.
Error:
Cause of error: unknown
How to resolve:
Delete the Mongod.lock file under the E:\Program files\mongodb\data\db directory.
Restart the service again to start successfully.
Summarize:
Contact with a new thing, it is inevitable that mistakes, mistakes come, solve, do not hide, dragged.
MongoDB Common Error Resolution method