centos7防火墙 firewall
systemctl status firewalld.service systemctl start firewalld.service systemctl stop firewalld.service //开机关闭防火墙 systemctl disable firewalld.service //在防火墙中开启端口(临时的重启无) firwall-cmd --add-port=436/tcp //永久的 firwall-cmd --permanent --add-port=436/tcp firewall-cmd --reload //删除一个端口(临时) firewall-cmd --remove-port=436/tcp //永久 firewall-cmd --permanent --remove-port=436/tcp firewall-cmd --reload //添加服务(临时的) firewall-cmd --add-service=http //永久的 firewall-cmd --permanent --add-service=http //删除服务 firewall-cmd --remove-service=http //永久的 firewall-cmd --permanent --remove-service=http //查看服务的 firewall-cmd --list-all