Created
April 5, 2011 09:13
-
-
Save dqminh/903298 to your computer and use it in GitHub Desktop.
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/bash | |
#replace /var/state and /var/state/mongodb with your proper path | |
sudo rm /var/state/mongodb/mongod.lock | |
sudo -u mongodb mongod --repair --dbpath=/var/state/mongodb | |
sudo /etc/rc.d/mongodb restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment