ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

Centos 开放防火墙端口

2026/8/12 11:46:39 拓冰建站 浏览量
Centos 开放防火墙端口

Centos 开放防火墙端口

本文以开放 8012 端口为例

Step1 查看防火墙状态

systemctl status firewalld


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

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

 

Step3 确认端口已开放

firewall-cmd --list-ports