Created
June 24, 2011 22:29
-
-
Save farazdagi/1045809 to your computer and use it in GitHub Desktop.
Fix mongodb after unclean shutdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm /var/lib/mongodb/mongod.lock | |
sudo -u mongodb mongod -f /etc/mongodb.conf --repair | |
sudo start mongodb | |
sudo status mongodb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment