阿里云Centos下安装nginx之后外网无法访问

centos 7.4

nginx1-14.0编译安装

curl 127.0.0.1 可以请求到 index.html

curl local 可以请求到 index.html

http://ip/ 无法访问

进入阿里云管理 ECS 实例,进入该实例安全组规则,默认没有 80 访问。添加安全组规则,将 80 端口设置为入站方向,暂时向所有 ip 开放(开发时),再次尝试通过

猜你喜欢

转载自www.cnblogs.com/cinlap/p/9075608.html