Install Redis on CentOS7

Reference

Official website Product Documentation Distributed cache

Perform installation

            yum -y install redis
        

Start the service and verify the service

            systemctl enable redis
systemctl start redis
telnet 127.0.0.1 6379
        

other information

After the installation is complete, the default is to bind 127.0.0.1, and the password verification is not turned on. If we need to change the bound IP, edit /etc/redis.conf and fill in the required IP address behind bind. Enabling password verification is also to modify the configuration file and enable requirepass. Please refer to the following example to modify. All modifications will only take effect after restarting the service.

            bind 127.0.0.1
# requirepass foobared
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bind 192.168.0.1
requirepass yourpassword