Loading
0

CentOS 7关闭firewall防火墙

systemctl stop firewalld.service
systemctl disable firewalld.service

开放端口:

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload

关闭端口:

firewall-cmd --zone=public --remove-port=8082/tcp --permanent

最后编辑于:2022/10/11作者: joycode

评论已关闭