Created
April 28, 2015 17:18
-
-
Save chrismyang/efcb51cb7deaf152cc1d to your computer and use it in GitHub Desktop.
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 | |
cat <<EOF >> /etc/yum.repos.d/mongodb.repo | |
[mongodb] | |
name=MongoDB Repository | |
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ | |
gpgcheck=0 | |
enabled=1 | |
EOF | |
yum install -y mongodb-org-2.6.8 mongodb-org-server-2.6.8 mongodb-org-shell-2.6.8 mongodb-org-mongos-2.6.8 mongodb-org-tools-2.6.8 | |
chown -R mongod:mongod /apps/isgaaadm/mongodb/ | |
chkconfig mongod on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment