Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install MongoDB 3.2
#!/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