Created
September 9, 2013 17:37
-
-
Save ccarrasc/6498940 to your computer and use it in GitHub Desktop.
Add repo and install MongoDb on CentOs
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 | |
# Create a repo for fetching Mongo | |
cat << 'EOF' > /etc/yum.repos.d/10gen.repo | |
[10gen] | |
name=10gen Repository | |
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 | |
gpgcheck=0 | |
enabled=1 | |
EOF | |
yum install mongo-10gen mongo-10gen-server -y | |
chkconfig mongod on | |
service mongod start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment