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 after installing redis in centos, the external network cannot be accessed

WJ
WJOriginal
2020-06-05 15:57:492956browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn