Skip to content

Instantly share code, notes, and snippets.

@b4oshany
Created November 5, 2015 16:55
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 b4oshany/83e7b6b5217315226ec6 to your computer and use it in GitHub Desktop.
Save b4oshany/83e7b6b5217315226ec6 to your computer and use it in GitHub Desktop.
Install Mongodb on Ubuntu
# Import the public key used by the package management system.
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
# Create a list file for MongoDB
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
# Reload local package database.
sudo apt-get update
# Install the MongoDB packages.
sudo apt-get install -y mongodb-org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment