【发布时间】:2020-09-22 18:49:24
【问题描述】:
在阿里云 ECS 实例上,我的 NGINX 工作正常,我可以从终端 ping 它,但我无法从浏览器访问我的网站。
nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
service nginx status
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-06-04 05:33:26 CST; 30min ago
Docs: man:nginx(8)
Process: 1737 ExecReload=/usr/sbin/nginx -g daemon on; master_process on; -s reload (code=exited, status=0/SUCCESS)
Process: 558 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 442 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 1714 (nginx)
Tasks: 2 (limit: 1129)
CGroup: /system.slice/nginx.service
├─1714 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
└─1738 nginx: worker process
当我指向我的 IP 时没有响应! 问题出在哪里?
尝试建议的修复程序得到以下结果 respose from the terminal
【问题讨论】:
-
忘了提到 nginx access.log 是空的
-
您还有问题吗?
-
是的,没有解决
-
好的。您是否已将安全组配置为允许端口 80/443?如果没有,那可能是你的问题。如果你这样做了,请分享你的 nginx 配置,并分享你的输出
netstat -ntpl
标签: nginx alibaba-cloud alibaba-cloud-ecs