firewall-cmd --zone=public --add-port=[端口号]/tcp --permanent
命令开放特定TCP端口。firewall-cmd --zone=public --add-port=[端口号]/tcp --permanent
命令开放特定TCP端口。firewall-cmd --list-ports
。firewall-cmd
命令来查看防火墙端口。具体命令如下:,,``bash,sudo firewall-cmd --list-ports,
``Powered By Z-BlogPHP 1.7.3