nginx安装成功,却打不开首页
很多时候,安装完成后,服务也启动了
但是访问不了
看看是不是防火墙开启了;
本地试下端口是否可访问telnet 192.168.137.128 80(主机地址 默认80端口)
CentOS 7默认使用的是firewall作为防火墙,这里改为iptables防火墙。
firewall:
systemctl start firewalld.service#启动firewall
systemctl stop firewalld.service#停止firewall
systemctl disable firewalld.service#禁止firewall开机启动
还没有评论,来说两句吧...