Skip to content

Instantly share code, notes, and snippets.

@ahmedash95
Created November 30, 2016 13:04
Show Gist options
  • Save ahmedash95/e00cf4b80bdf788b569ab5d17672557f to your computer and use it in GitHub Desktop.
Save ahmedash95/e00cf4b80bdf788b569ab5d17672557f to your computer and use it in GitHub Desktop.
MongoDB Installer
apt-get update
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
apt-get update
apt-get install -y mongodb-org=3.2.11 mongodb-org-server=3.2.11 mongodb-org-shell=3.2.11 mongodb-org-mongos=3.2.11 mongodb-org-tools=3.2.11
service mongod restart
@ahmedash95
Copy link
Author

to Install the script

wget https://gist.githubusercontent.com/ahmedash95/e00cf4b80bdf788b569ab5d17672557f/raw/132096ce3bf1fefa7fd256702fd2696f3971e138/mongo-installer.sh && sh mongo-installer.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment