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
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
##4、Verification: telnet ip 6379 Related recommendations: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!