# 关闭防火墙 systemctl stop firewalld # 查看防火墙状态 systemctl status firewalld 查看已开放的端口 firewall-cmd --list-ports 开放端口(开放后需要要重载防火墙才生效) firewall-cmd --zone=public --add-port=3338/tcp --permanent 关闭端口(关闭后需要要重载防火墙才生效) firewall-cmd --zone=public --remove-port=3338/tcp --permanent
标签:--,cmd,端口,防火墙,tcp,firewall,linux From: https://www.cnblogs.com/upupup-999/p/17785142.html