Skip to content

Instantly share code, notes, and snippets.

@xmppjingle
Last active February 22, 2018 21:54
Show Gist options
  • Save xmppjingle/23712503b8bf8941c0b35e001873d0bb to your computer and use it in GitHub Desktop.
Save xmppjingle/23712503b8bf8941c0b35e001873d0bb to your computer and use it in GitHub Desktop.
#!/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