centos FirewallD is not running 防火墙未开启

本是要打算开启redis的端口的

1.firewall-cmd --zone=public --add-port=6379/tcp --permanent

centos FirewallD is not running 防火墙未开启

2.systemctl status firewalld查看firewalld状态    结果是dead  未开启

centos FirewallD is not running 防火墙未开启

3.systemctl start firewalld   开启

4.再看一遍状态   running

centos FirewallD is not running 防火墙未开启

5.再执行就一遍就可以了 

centos FirewallD is not running 防火墙未开启

6.如果要关闭防火墙  关了就行了  (我就不关了)

systemctl stop firewalld