Skip to content

Instantly share code, notes, and snippets.

@hawkup
Created August 10, 2015 15:17
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 hawkup/58b7aebe1099fbc0df1e to your computer and use it in GitHub Desktop.
Save hawkup/58b7aebe1099fbc0df1e to your computer and use it in GitHub Desktop.
Install mongodb on Ubuntu

Install mongodb

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
  • start / stop / check status
sudo service mongod start
sudo service mongod stop
sudo service mongod status

reference: https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-14-04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment