CentOS 7にRedisサーバをインストールする場合、epelおよびremiからインストールをすると簡単だ。
まず、以下のコマンドでepelおよびremiをインストールする。

bash
yum install -y epel-release rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

次に、以下のコマンドでredis-serverをインストールする。

bash
yum install --enablerepo=epel -y gperftools yum install --enablerepo=remi -y redis

最後に、以下のコマンドでRedisを起動する。

bash
systemctl start redis