Ⅰ.CentOS # 查看防火墙状态 firewall-cmd --state # 运行防火墙 systemctl start firewalld # 开机启动防火墙 systemctl enable firewalld # 停止运行防火墙 systemctl stop firewalld # 禁用开机启动防火墙 systemctl disable firewalld Ⅱ.Ubantu # 查看防火墙状态 ufw status 或 systemctl status ufw # 运行防火墙 start ufw # 开…