Install Redis
In this section you’ll add the EPEL repository, and then use it to install Redis.
Add the EPEL repository, and update YUM to confirm your change:
yum install epel-release
yum update
Install Redis:
yum install redis
With Remi repository
yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum --enablerepo=remi install redis
Start Redis:
systemctl start redis
Optional: To automatically start Redis on boot:
systemctl enable redis
Verify the Installation
Verify that Redis is running with redis-cli
:
redis-cli ping
If Redis is running, it will return:
PONG