笔记：开启防火墙systemctl start firewalld 关闭防火墙systemctl stop firewalld 禁用防火墙服务systemctl make firewalld添加规则：开放80端口firewall-cmd --permanent --add-port=80/tcp开放443端口firewall-cmd --permanent --add-port=443/tcp开放22端口firewall-cmd --permanent --add-port=22/tcp开放21端口firewall-cmd --permanent --add-port=21/tcp开放23560端口firewall-cmd --permanent --add-port=23560/tcp开放8080端口firewall-cmd --permanent --add-port=8080/tcp【旧防火墙机制】安装iptablesyum -y install iptables-services开启iptablessystemctl enable iptables