Skip to content

Instantly share code, notes, and snippets.

@ivanhuay
Created January 5, 2017 01:17
Show Gist options
  • Save ivanhuay/0c47a1c36ffdf2d5673c35f70f723213 to your computer and use it in GitHub Desktop.
Save ivanhuay/0c47a1c36ffdf2d5673c35f70f723213 to your computer and use it in GitHub Desktop.
install mongodb 3 - ubuntu 16.04
#!/bin/bash
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
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
sudo service mongod start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment