Home >Operation and Maintenance >CentOS >How to solve the problem that after installing redis in centos, the external network cannot be accessed
#How to solve the problem that centos cannot access the external network after redis is installed?
Run the redis.conf configuration file
[root@izbp19q3mt9blg0im4ngegz redis-4.0.2]# vim ./redis.conf
Find the protected-modeprote set to no
protected-mode no
bind set to 0.0.0.0
bind 0.0.0.0
Cancel requirepass comment, set password
requirepass "password"
If it is Alibaba Cloud, you need to open port 6379
Also pay attention to the opening of the firewall port
Related references: centOS tutorial
The above is the detailed content of How to solve the problem that after installing redis in centos, the external network cannot be accessed. For more information, please follow other related articles on the PHP Chinese website!