CentOS 7 Install redis server

Install EPEL repo

wget -r --no-parent -A 'epel-release-*.rpm' http://dl.fedoraproject.org/pub/epel/7/x86_64/e/

rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-*.rpm

Install redis server

yum install redis

Start the redis server

systemctl start redis.service

Check redis server stauts.

systemctl status redis.service

TEST redis server.

redis-cli ping

then Terminal screen response PONG is OK

Default redis server listen 127.0.0.1:6379, can modify config.

vim /etc/redis.conf

bind 127.0.0.1 change 0.0.0.0