Skip to content

Instantly share code, notes, and snippets.

@jeffwilcox
Last active December 18, 2015 08:09
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 jeffwilcox/5752429 to your computer and use it in GitHub Desktop.
Save jeffwilcox/5752429 to your computer and use it in GitHub Desktop.
Used for preparing a simple CentOS VM for MongoDB by adding the 10gen repo and installing the packages.
# Install MongoDB on CentOS
cat > ./10gen.repo << "YUM10GEN"
[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
enabled=1
YUM10GEN
sudo mv 10gen.repo /etc/yum.repos.d/
sudo yum update -y
sudo yum install -y mongo-10gen mongo-10gen-server
echo Once the machine is configured appropriately, run:
echo sudo service mongod start
echo sudo chkconfig mongod on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment