Skip to content

Instantly share code, notes, and snippets.

@nedmas
Created June 18, 2013 08:33
Show Gist options
  • Save nedmas/5803636 to your computer and use it in GitHub Desktop.
Save nedmas/5803636 to your computer and use it in GitHub Desktop.
Fix MongoDb on Ubuntu
# 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