Created
June 28, 2018 15:42
-
-
Save arnaudcourtecuisse/886f28cd9e608f2a5f3829592ebb98cb to your computer and use it in GitHub Desktop.
Install mongodb repositories and packages
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
# 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