Created
November 1, 2020 01:10
-
-
Save icarrr/e4d6ec03d49a660311644c4f48ac79a1 to your computer and use it in GitHub Desktop.
Install MongoDB 3.2
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 | |
# Tested : Ubuntu 16.04 | |
set -e | |
# Setup | |
mkdir mongo-pkg | |
cd mongo-pkg | |
wget https://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.2/multiverse/binary-amd64/mongodb-{org-mongos,org-server,org-shell,org-tools,org}_3.2.16_amd64.deb | |
sudo dpkg -i * | |
# Enable and start mongo service | |
sudo systemctl enable mongod.service | |
sudo systemctl start mongod.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment