Skip to content

Instantly share code, notes, and snippets.

@rushi216
Last active August 17, 2016 13:04
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 rushi216/b00c61a076e21a2911e9359da2325326 to your computer and use it in GitHub Desktop.
Save rushi216/b00c61a076e21a2911e9359da2325326 to your computer and use it in GitHub Desktop.
Install mongo on amazon ec2 instance
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