[cnetos 6.5之前的版本]
sudo service firewalld stop //停止服务
sudo service firewalld start //启动服务
sudo service firewalld status //查看状态
[centos7]
systemctl enable firewalld.service //"开机启动"启用
systemctl disable firewalld.service //"开机自启"禁用
systemctl start firewalld.service //启动防火墙
systemctl stop firewalld.service //停止防火墙
systemctl status firewalld.service //查看防火墙状态
[开机自启]
chkconfig firewalld on //"开启自启"启用
chkconfig firewalld off //"开启自启"禁用