Skip to content

Instantly share code, notes, and snippets.

@farazdagi
Created June 24, 2011 22:29
Show Gist options
  • Save farazdagi/1045809 to your computer and use it in GitHub Desktop.
Save farazdagi/1045809 to your computer and use it in GitHub Desktop.
Fix mongodb after unclean shutdown
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