Created
June 13, 2011 21:23
-
-
Save BrandonMathis/1023746 to your computer and use it in GitHub Desktop.
Setup MongoDB on RedHat
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
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm | |
rpm -Uvh epel-release-5-4.noarch.rpm |
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
yum install mongodb-server | |
mkdir /var/lib/mongodb | |
chown mongodb:mongodb /var/lib/mongodb | |
/etc/init.d/mongod start |
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
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 27017 -j ACCEPT | |
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 28017 -j ACCEPT |
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
/etc/init.d/iptables restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment