Solution to redis error in CentOS of idea connected virtual machine

1. In CentOS, ifconfig determines

2. In CentOS, change the path to the installation directory of redis, and change the content of redis.conf file

Modify bind
change bind to – & gt; Change bind protected mode yes to — & gt; Protected mode no close firewall
systemctl stop firewalld.service # stop firewall
systemctl disable firewalld.service # disable firewall startup
firewall CMD — state # view default firewall status, firewall status display not running

3. Restart CentOS

4. Enable redis to start as specified configuration file

Switch to the SRC directory under the redis directory./redis server…/redis.conf to start redis

5. Test the connection between idea and redis

Read More: