CentOS - Install Redis

Installing EPEL repository on CentOS via yum.

sudo yum install epel-release
sudo yum update

Install Redis via yum.

sudo yum install redis

Start Redis server.

sudo systemctl start redis

Enable Redis to be automatically started at boot time.

sudo systemctl enable redis

Disable starting Redis at boot time.

sudo systemctl disable redis

Test if Redis server is running.

redis-cli ping
PONG