Centos7/RHEL7 如何开放防火墙端口(httpd)

2026-02-14 12:23:22

1、用root用户执行下面3个命令:

#firewall-cmd --add-service=http

允许http服务通告防火墙

2、#firewall-cmd --permanent --add-service=http

在永久配置中 添加http服务

3、#firewall-cmd --reload

在不改变状态的条件下重新加载防火墙

猜你喜欢