Created
March 25, 2012 17:38
-
-
Save dstroot/2198526 to your computer and use it in GitHub Desktop.
Install MongoDB on Amazon EC2
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
#!/bin/bash | |
echo "*****************************************" | |
echo " Add the 10gen repository - after you press" | |
echo " enter add the following lines and then" | |
echo " cntl-X to save:" | |
echo " [10gen]" | |
echo " name=10gen Repository" | |
echo " baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64" | |
echo " gpgcheck=0" | |
echo "*****************************************" | |
read -p "Press [Enter] to continue..." | |
nano /etc/yum.repos.d/10gen.repo | |
# install MongoDB | |
sudo yum install mongo-10gen and mongo-10gen-server | |
# start the service | |
sudo service mongod start | |
# install service | |
sudo chkconfig mongod on | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good one. A tarball approach provides more control. https://www.attosol.com/how-to-install-mongodb-in-aws-linux-step-by-step/