Created
August 21, 2019 01:22
-
-
Save gggordon/07f5fb7d25f2286f3586e1bba8353b1d to your computer and use it in GitHub Desktop.
Install mongo db unattended
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
#!/usr/bin/env bash | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 | |
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list | |
sudo apt-get update | |
sudo apt-get install -y --allow-unauthenticated mongodb-org | |
sudo systemctl start mongod | |
sudo systemctl status mongod | |
sudo systemctl enable mongod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment