Skip to content

Instantly share code, notes, and snippets.

@rodrigo-galba
Created November 24, 2017 17:47
Show Gist options
  • Save rodrigo-galba/e53781e5f4b41685691d009f414d1e77 to your computer and use it in GitHub Desktop.
Save rodrigo-galba/e53781e5f4b41685691d009f414d1e77 to your computer and use it in GitHub Desktop.
Ubuntu 16: MongoDB install
#!/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