Created
June 18, 2013 08:33
-
-
Save nedmas/5803636 to your computer and use it in GitHub Desktop.
Fix MongoDb on Ubuntu
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
# Manually remove the lockfile: | |
sudo rm /var/lib/mongodb/mongod.lock | |
# Run the repair script: | |
sudo -u mongodb mongod -f /etc/mongodb.conf --repair | |
# Run the MongoDb server: | |
sudo service mongodb start | |
# Check the MongoDb server status: | |
sudo service mongodb status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment