標簽:top 關閉端口 public 啓動 move firewall disable zone 端口
CentOS7查看開放端口命令及開放端口號
查看已開放的端口
firewall-cmd --list-ports
開放端口(開放後需要要重啓防火牆才生效)
firewall-cmd --zone=public --add-port=3338/tcp --permanent
重啓防火牆
firewall-cmd --reload
關閉端口(关闭后需要要重啓防火牆才生效)
firewall-cmd --zone=public --remove-port=3338/tcp --permanent
开机啓動防火墙
systemctl enable firewalld
開啓防火牆
systemctl start firewalld
禁止防火墙开机啓動
systemctl disable firewalld
停止防火牆
systemctl stop firewalld
標簽:top 關閉端口 public 啓動 move firewall disable zone 端口
原文地址:https://www.cnblogs.com/nvyuan/p/15019258.html