1. Install Redis
- yum install epel-release yum-utils -y
- yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
- yum install redis -y
2.Enable and start Service
systemctl enable –now redis
3. By default, redis listens only on lookback address
vi /etc/redis.conf (Add the server ip next to lookback IP
bind 127.0.0.1 10.20.22.42
4. Restart Redis and check the ports
- systemctl restart redis
- ss -an | grep 6379
- redis-cli -h 10.20.22.41 ping