nginx启动成功访问不到主页 centos安装完Nginx后,为什么访问不了?

centos安装完Nginx后,为什么访问不了?查看防火墙是否打开;CentOS 7默认使用防火墙作为防火墙,此处改为iptables防火墙。防火墙:systemctl start防火墙服务启动fir

centos安装完Nginx后,为什么访问不了?

查看防火墙是否打开;CentOS 7默认使用防火墙作为防火墙,此处改为iptables防火墙。防火墙:systemctl start防火墙服务启动firewallsystemctl停止防火墙服务停止firewallsystemctl禁用防火墙服务禁止防火墙启动并尝试在CentOS下使用$curlhttp://127.0.0.1命令访问nginx。确定是否可以访问;