firewall关闭端口 # 关闭指定的端口,例如关闭端口 8080 firewall-cmd --permanent --zone=public --remove-port=8080/tcp # 重新加载防火墙规则使更改生效 firewall-cmd --reload