Skip to content

Instantly share code, notes, and snippets.

@ccarrasc
Created September 9, 2013 17:37
Show Gist options
  • Save ccarrasc/6498940 to your computer and use it in GitHub Desktop.
Save ccarrasc/6498940 to your computer and use it in GitHub Desktop.
Add repo and install MongoDb on CentOs
#!/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