/sbin/iptables -I INPUT -p tcp --dport 6379 -j ACCEPT /etc/rc.d/init.d/iptables save /etc/rc.d/init.d/iptables status /etc/rc.d/init.d/iptables restart