centos7-防火墙开启端口 文章目录 centos7-防火墙开启端口开启8080端口关闭8080端口查询开启的端口重启防火墙 开启或关闭端口后必须要重启防火墙!!! 开启8080端口 [root@xuhy ~]# firewall-cmd --zone=public --add-port=8080/tcp --permanent 关闭8080端口 [root@xuhy ~]# firewall-cmd --remove-port=8080/tcp --permanent 查询开启的端口 [root@xuhy ~]# firewall-cmd --list-port 重启防火墙 [root@xuhy ~]# firewall-cmd --reload