Ubuntu使用firewall-cmd防火墙命令管理端口 发表于 2022-01-03 更新于 2022-05-20 分类于 Ubuntu 本文字数: 231 阅读时长 ≈ 1 分钟 安装打开端口查看端口列表关闭端口 安装12sudo apt-get updatesudo apt-get install firewalld 打开端口12firewall-cmd --add-port=8888/tcp --permanentfirewall-cmd --reload 查看端口列表1firewall-cmd --zone=public --list-ports 关闭端口12firewall-cmd --remove-port=8888/tcp --permanentfirewall-cmd --reload