Skip to content

Instantly share code, notes, and snippets.

@icarrr
Created November 1, 2020 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icarrr/e4d6ec03d49a660311644c4f48ac79a1 to your computer and use it in GitHub Desktop.
Save icarrr/e4d6ec03d49a660311644c4f48ac79a1 to your computer and use it in GitHub Desktop.
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