Centos7防火墙端口开放及查看命令
2021/09
02
19:09
#开放,移除端口;重新载入使之生效
firewall-cmd --zone=public --add-port=5672/tcp --permanent
firewall-cmd --zone=public --remove-port=5672/tcp --permanent
firewall-cmd --reload
#查看所有开放的端口
firewall-cmd --zone=public --list-ports
#关闭防火墙
systemctl stop firewalld.service
#查看防火墙状态
firewall-cmd --state
#查看监听的端口
netstat -lnpt
// yum install -y net-tools
#检查端口被哪个进程占用
netstat -lnpt |grep 5672
CopyRights: The Post by BY-NC-SA For Authorization,Original If Not Noted,Reprint Please Indicate From 老刘@开发笔记
Post Link: Centos7防火墙端口开放及查看命令
Post Link: Centos7防火墙端口开放及查看命令