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

2024-10-31 06:48:43

1、用root用户执行下面3个命令:#firewall-cmd --add-service=http允许http服务通告防火墙

2、#firewall-cmd --permanent --add-service=http在永久配置中 添加http服务

3、#firewall-cmd --reload在不改变状态的条件下重新加载防火墙

猜你喜欢