Skip to content

Instantly share code, notes, and snippets.

@nmhnmh
Created March 7, 2017 09:07
Show Gist options
  • Save nmhnmh/867248b5bb5b7fcd8c2c84221be1b880 to your computer and use it in GitHub Desktop.
Save nmhnmh/867248b5bb5b7fcd8c2c84221be1b880 to your computer and use it in GitHub Desktop.
Install Lastest MongoDB Server on Ubuntu1604
# import GPG key
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
# write APT source list
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
# Update APT cache
sudo apt update
# Install
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