Home  >  Article  >  Database  >  How to open the redis port under linux

How to open the redis port under linux

王林
王林forward
2021-02-04 09:22:463342browse

How to open the redis port under linux

The specific steps are as follows:

First open the redis.conf configuration file

vi redis.conf

Then change bind 127.0.0.1 to 0.0.0.0

How to open the redis port under linux

Then execute the command:

1, /sbin/iptables -I INPUT -p tcp --dport 6379 -j ACCEPT

2, / etc/init.d/iptables save

3、service iptables restart

How to open the redis port under linux

##4、Verification: telnet ip 6379

Related recommendations:

redis database tutorial

The above is the detailed content of How to open the redis port under linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete