redis关闭防火墙的示例:
CentOS 7.0默认使用的是firewall作为防火墙,将其关闭方法:
在终端关闭firewall,命令:
systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动