Skip to content

Instantly share code, notes, and snippets.

@MnHung
Created February 15, 2017 01:35
Show Gist options
  • Save MnHung/7ae17b91b657ee132420a5108cce14b1 to your computer and use it in GitHub Desktop.
Save MnHung/7ae17b91b657ee132420a5108cce14b1 to your computer and use it in GitHub Desktop.
# install mongo db on Ubuntu 16.04.1 LTS (ec2, 2017.2.9), it takes about 300mb space
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
# let's go
# Import the public key used by the package management system
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
# Create a list file for MongoDB.
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-get update
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