Centos 7 端口开放

原文链接:https://www.cnblogs.com/ysmc/p/16012281.html

打开防火墙

1 systemctl start firewalld

查看端口开放

1 firewall-cmd --list-ports

开放 80 端口

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

重新读取配置

1 firewall-cmd --reload
posted @ 2022-03-16 13:01  一事冇诚  阅读(594)  评论(0编辑  收藏  举报