Skip to content

Instantly share code, notes, and snippets.

@knightq
Created July 9, 2012 15:30
Show Gist options
  • Select an option

  • Save knightq/3077181 to your computer and use it in GitHub Desktop.

Select an option

Save knightq/3077181 to your computer and use it in GitHub Desktop.
Repair MongoDB on Ubuntu
# see: http://stackoverflow.com/questions/4837427/mongo-ruby-connection-problem
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