Skip to content

Instantly share code, notes, and snippets.

@arnaudcourtecuisse
Created June 28, 2018 15:42
Show Gist options
  • Save arnaudcourtecuisse/886f28cd9e608f2a5f3829592ebb98cb to your computer and use it in GitHub Desktop.
Save arnaudcourtecuisse/886f28cd9e608f2a5f3829592ebb98cb to your computer and use it in GitHub Desktop.
Install mongodb repositories and packages
# Install mongodb 3.4 as root
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.4 main" | tee /etc/apt/sources.list.d/mongodb-org-3.4.list
apt-get install -y mongodb-org=3.4.0 mongodb-org-server=3.4.0 mongodb-org-shell=3.4.0 mongodb-org-mongos=3.4.0 mongodb-org-tools=3.4.0
systemctl enable mongod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment