参见http://www.07net01.com/2016/03/1355735.html

过程中需要安装perl

 

 

CentOS 7 采用了 firewalld 防火墙

service firewalld status

如要查询是否开启80端口则:

[root@joe-pc ~]# firewall-cmd --query-port=80/tcp
no
显然80端口没有开启

下面我们开启80端口:
[root@joe-pc ~]# firewall-cmd --add-port=80/tcp
success

posted on 2016-05-21 23:55  丢た壳の蜗牛  阅读(149)  评论(0编辑  收藏  举报