Created
September 8, 2011 10:07
-
-
Save antlypls/1203070 to your computer and use it in GitHub Desktop.
repair mongodb if it's not started after crash
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
#!/bin/sh | |
sudo rm /var/lib/mongodb/mongod.lock | |
sudo mongod --repair | |
sudo service mongodb start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment