This article explains how to install Redis on a Redhat or CentOS server. We have the EPEL repo already available on this server prior to starting this tutorial.
yum install redis
Edit the configuration file to bind it to the correct network interface. Only do this if you want other servers to connect to your Redis server. The configuration file is “/etc/redis.conf”:
bind 0.0.0.0
The above will have Redis listen on all interfaces.
Now enable it:
chkconfig redis on
Enable port “6379” through the firewall in “/etc/sysconfig/iptables”:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 6379 -j ACCEPT
And restart the key services:
service redis restart service iptables restart