centos7关闭防火墙

关闭防火墙

systemctl stop firewalld.service            #停止firewall
systemctl disable firewalld.service        #禁止firewall开机启动

开启端口

firewall-cmd --zone=public --add-port=80/tcp --permanent
Last modification:August 23rd, 2022 at 10:37 pm

Leave a Comment