Centos 7 开启端口
CentOS 7 默认没有使用iptables,因此经过编辑iptables的配置文件来开启80端口是不能够的tcp
CentOS 7 采用了 firewalld 防火墙ip
如要查询是否开启80端口则:cmd
[root@joe-pc ~]# firewall-cmd --query-port=80/tcptable
no配置
下面咱们开启80端口:iptables
[root@joe-pc ~]# firewall-cmd --add-port=80/tcp
success防火墙