正文CentOS firewalld 防火墙操作IP云V管理员/2022-12-01/4 阅读 12/01提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 Centos 7 开启端口 CentOS 7 默认没有使用iptables,所以通过编辑iptables的配置文件来开启80端口是不可以的 CentOS 7 采用了 firewalld 防火墙 如要查询是否开启80端口则: [root@joe-pc ~]# firewall-cmd --query-port=80/tcp no 下面我们开启80端口: [root@joe-pc ~]# firewall-cmd --add-port=80/tcp success