2017年8月29日
摘要: CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下 1、直接关闭防火墙 systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 2、设置 iptables service yum -y install ipta... 阅读全文
posted @ 2017-08-29 20:12 Ruthless 阅读(2812) 评论(0) 推荐(0) 编辑
摘要: CentOS7默认没有使用iptables,所以通过编辑iptables的配置文件来开启80端口是不可以的。 CentOS 7 采用了 firewalld 防火墙。 如要查询是否开启80端口: 显然80端口没有开启。 下面我们开启80端口: 阅读全文
posted @ 2017-08-29 15:03 Ruthless 阅读(609) 评论(0) 推荐(0) 编辑