Skip to content

Instantly share code, notes, and snippets.

@adowning
Forked from rodrigo-galba/install-mongo.sh
Created December 15, 2017 11:47
Show Gist options
  • Select an option

  • Save adowning/b2d151b135f29b4621be1e5299eb34b2 to your computer and use it in GitHub Desktop.

Select an option

Save adowning/b2d151b135f29b4621be1e5299eb34b2 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