CentOS 7系列版本默认使用的是firewall作为防火墙
查看防火墙状态
firewall-cmd --state或者systemctl status firewalld.service
停止firewall
systemctl stop firewalld.service
启动firewall
systemctl start firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service
查看防火墙状态
firewall-cmd --state或者systemctl status firewalld.service
停止firewall
systemctl stop firewalld.service
启动firewall
systemctl start firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service