How to solve the problem that after installing redis in centos, the external network cannot be accessed

WJ
Release: 2020-06-05 15:57:49
Original
2916 people have browsed it

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
Copy after login

Find the protected-modeprote set to no

protected-mode no
Copy after login

bind set to 0.0.0.0

bind 0.0.0.0
Copy after login

Cancel requirepass comment, set password

requirepass "password"
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template