Skip to content

Instantly share code, notes, and snippets.

@victorreyesh
Created September 12, 2013 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorreyesh/6532791 to your computer and use it in GitHub Desktop.
Save victorreyesh/6532791 to your computer and use it in GitHub Desktop.
When you have mongo db installed, this is the quick way/ cheat sheet to get it up and running
// Run these commands in Terminall
Stop mongodb service
sudo service mongodb stop
//Remove mongodb lock file
sudo rm /var/lib/mongodb/mongod.lock
//Change ownership from root to mongodb path
sudo chown -R mongodb:mongodb /var/lib/mongodb/
Start mongodb service
sudo service mongodb start
Test mongo app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment