Last active
August 17, 2016 13:04
-
-
Save rushi216/b00c61a076e21a2911e9359da2325326 to your computer and use it in GitHub Desktop.
Install mongo on amazon ec2 instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "[mongodb-org-3.2] | |
name=MongoDB Repository | |
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.2/x86_64/ | |
gpgcheck=1 | |
enabled=1 | |
gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc" | | |
sudo tee -a /etc/yum.repos.d/mongodb-org-3.2.repo | |
sudo yum -y update && sudo yum install -y mongodb-org-server mongodb-org-shell mongodb-org-tools | |
sudo chkconfig mongod on | |
# comment out bindIp: 127.0.0.1 from /etc/mongod.conf | |
sudo service mongod start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment