centos7查看redis状态 centos怎么设置redis防火墙?
centos怎么设置redis防火墙?打开redis端口,修改防火墙配置文件VI/etc/sysconfig/iptables,添加端口配置-a rh-firewall-1-input-M state
centos怎么设置redis防火墙?
打开redis端口,修改防火墙配置文件VI/etc/sysconfig/iptables,添加端口配置-a rh-firewall-1-input-M state--state new-M TCP-P TCP--dport 6379-J accept-a rh-firewall-1-input-M state--state new-M TCP-P TCP--dport 6379:7000-J accept//打开服务iptables save service iptables restart between 6379 and 7000 CentOS 7.0默认使用防火墙作为防火墙,这是已更改为iptables防火墙。