【发布时间】:2021-04-30 08:23:12
【问题描述】:
我正在尝试遵循有关在 GCP vm 实例 (https://towardsdatascience.com/10-minutes-to-building-a-machine-learning-pipeline-with-apache-airflow-53cd09268977) 上创建 Apache Airflow 管道的教程,但是在构建并运行 docker 容器后,尝试使用 Nginx 1.14 时出现“502 Bad Gateway”错误使用以下方式访问网络服务器:
http://<VM external ip>/
我对使用 GCP 很陌生,不知道如何解决这个问题。
一些在线研究建议将 NGINX 配置文件编辑为:
keepalive_timeout 650;
keepalive_requests 10000;
但这并没有改变任何东西。
GCP 实例是 N1-standard-8,带有 Ubuntu 18.04,并启用了云、HTTPS 和 HTTP 访问。
启用的 Nginx 站点是:
server {
listen 80;
location / {
proxy_pass http://0.0.0.0:8080/;
}
}
【问题讨论】:
标签: nginx google-cloud-platform google-compute-engine airflow