介绍关于centos7防火墙的,添加、查看、删除、重启等命令
重启 systemctl restart firewalld
查看 firewall-cmd --zone=public --list-ports
指定 firewall-cmd --zone=public --query-port=80/tcp
删除 firewall-cmd --zone= public --remove-port=80/tcp --permanent
添加 firewall-cmd --zone=public --add-port=80/tcp --permanent
重载 firewall-cmd --reload
启动 systemctl start firewalld
状态 systemctl status firewalld
停止 systemctl disable firewalld
禁用 systemctl stop firewalld
开机 systemctl enable firewalld