在7以下使用iptables的管理方式 service iptables status 查看防火墙状态 service iptables start 启动 service iptables stop 停止
在centos7用的是firwalld.service来管理防火墙的
所以执行命令install firewalld systemd -y
然后就可以使用 systemctl status/start/stop firewalld 来操作防火墙了
在7以下使用iptables的管理方式 service iptables status 查看防火墙状态 service iptables start 启动 service iptables stop 停止
在centos7用的是firwalld.service来管理防火墙的
所以执行命令install firewalld systemd -y
然后就可以使用 systemctl status/start/stop firewalld 来操作防火墙了