Created
November 24, 2017 17:47
-
-
Save rodrigo-galba/e53781e5f4b41685691d009f414d1e77 to your computer and use it in GitHub Desktop.
Ubuntu 16: MongoDB install
This file contains hidden or 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 -x | |
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 update | |
sudo apt install -y mongodb-org | |
sudo systemctl enable mongod | |
sudo vim /etc/mongod.conf | |
-- change access config if necessary | |
sudo systemctl start mongod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment