Skip to content

Instantly share code, notes, and snippets.

@ografael
Created March 25, 2012 18:21
Show Gist options
  • Save ografael/2198836 to your computer and use it in GitHub Desktop.
Save ografael/2198836 to your computer and use it in GitHub Desktop.
command to restart mongo
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