The following commands will install redis on a server running CentOS 6.4.

First, install the epel repo

sudo rpm -Uvh  

Next, install the remi repo

sudo rpm -Uvh  

Now, you should be able to install redis using the yum package manager.

yum install redis -y  

You should now be able to start redis using the following command