Created
August 22, 2014 17:50
-
-
Save frhan/9d9c78046377110833a6 to your computer and use it in GitHub Desktop.
Reapir mongodb
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
Step 1: Remove lock file. | |
sudo rm /var/lib/mongodb/mongod.lock | |
Step 2: Repair mongodb. | |
mongod --repair | |
Step 3: start mongodb. | |
sudo start mongodb | |
or | |
sudo service mongodb start | |
Step 4: Check status of mongodb. | |
sudo status mongodb | |
or | |
sudo service mongodb status | |
Step 5: Start mongo console. | |
mongo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment