When I try to connect mongdb service i am getting error: **
Windows could not start the MongoDB service on Local Computer
**
Error1053: the service did not respond to the start or control request in a timely fashion
Mongodb installed path: C:\MongoDB //mongod.cfg file inside the MongodB folder not in bin folder
mongod.cfg file:
systemLog:
destination: file
path: c:\data\log\mongod.log
storage:
dbPath: c:\data\db***
how do I resolve this error and run a mongodb service
We found that the reason for this error was the dbpath variable in /etc/mongodb. conf. Previously, the default value for dbpath was /data/db. The upstart job mongodb(which comes with mongodb-10gen package) invokes the mongod with –config /etc/mongodb.
I had a similar problem with MongoDB 4. In auto generated config file, there is an extra configuration, that caused the problem.
#snmp:
mp:
When i deleted "mp:", i can finally start the server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With