If mongodb is terminating siting old lock file reasons, it is because of it was not properly shutdown on previous instance due to system crash.
You can use following commands in linux to fix it
You can use following commands in linux to fix it
sudo -u mongodb mongod --repair --dbpath /var/lib/mongodb/
sudo service mongodb start
No comments:
Post a Comment