install redis server on CentOS 7

While implementation,( server clusters case ), simple socket server will not work and you need to use socket with redis server. So how to install redis on centos os, follow steps below.

*Sudo user required.

yum install redis // install redis server
systemctl start redis.service // start redis server
systemctl status redis.service // check server status
redis-cli ping // gives reply PONG if redis server works
systemctl enable redis.service // stat redis sever evertime to restart server

For more info read docs

Leave a comment

Your email address will not be published. Required fields are marked *