Skip to content

Instantly share code, notes, and snippets.

@BrandonMathis
Created June 13, 2011 21:23
Show Gist options
  • Save BrandonMathis/1023746 to your computer and use it in GitHub Desktop.
Save BrandonMathis/1023746 to your computer and use it in GitHub Desktop.
Setup MongoDB on RedHat
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh epel-release-5-4.noarch.rpm
yum install mongodb-server
mkdir /var/lib/mongodb
chown mongodb:mongodb /var/lib/mongodb
/etc/init.d/mongod start
-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
/etc/init.d/iptables restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment