Centos 开放防火墙端口

Centos 开放防火墙端口

本文以开放 8012 端口为例

Step1 查看防火墙状态

systemctl status firewalld


Step2 如果防火墙开启,添加8012端口

firewall-cmd --permanent --add-port=8012/tcp
firewall-cmd --reload

 

Step3 确认端口已开放

firewall-cmd --list-ports

 

 
posted @ 2025-11-18 10:30  小路亚  阅读(0)  评论(0)    收藏  举报