Last active
December 18, 2015 08:09
-
-
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.
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
# 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