Last active
February 22, 2018 21:54
-
-
Save xmppjingle/23712503b8bf8941c0b35e001873d0bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
# Keys | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 | |
# Repos | |
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list | |
# Debian 7 | |
#echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.6 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list | |
# Update | |
sudo apt-get update | |
# Install | |
sudo apt-get install -y mongodb-org | |
# Startup | |
sudo service mongod start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment