To configure the problems encountered by the MongoDB service:
1.32-bit servers don ' t have journaling enabled Bydefault.
WORKAROUND: Please use the--journal if you want durability. Add Parameters--journal
Mongod.exe--blid_ip 0.0.0.0--logpath D:\MongoDB\Server\3.2\data\logs\mongo.log--logappend--dbpathd:\mongodb\ Server\3.2\data\db--storageengine=mmapv1--servicename "MongoDB"--servicedisplayname "MongoDB"--journal--install
After adding the MongoDB service successfully, try to start the MongoDB service (win+r--〉services.msc--〉 boot)
2.windows cannot start MongoDB on the local computer.
Solution:
Mongod.lock deletion under the MongoDB installation directory \data\db\ folder:
Del Mongod.lock
* Other issues: Delete Windows Service project.
Previously installed in C disk, MongoDB some of the command path can not have a space, reload in D disk.
Workaround:
SC Delete MongoDB
Reboot the computer to create a new service with the same name, or disable the status Configuration MongoDB service encountered:
1.32-bit servers don ' t have journaling enabled Bydefault.
WORKAROUND: Please use the--journal if you want durability. Add Parameters--journal
Mongod.exe--blid_ip 0.0.0.0--logpath D:\MongoDB\Server\3.2\data\logs\mongo.log--logappend--dbpathd:\mongodb\ Server\3.2\data\db--storageengine=mmapv1--servicename "MongoDB"--servicedisplayname "MongoDB"--journal--install
After adding the MongoDB service successfully, try to start the MongoDB service (win+r--〉services.msc--〉 boot)
2.windows cannot start MongoDB on the local computer.
Solution:
Mongod.lock deletion under the MongoDB installation directory \data\db\ folder:
Del Mongod.lock
* Other issues: Delete Windows Service project.
Previously installed in C disk, MongoDB some of the command path can not have a space, reload in D disk.
Workaround:
SC Delete MongoDB
Reboot the computer to create a new service with the same name, or disable the state