我试图遵循一个关于在GCP vm实例上创建Apache气流管道的教程(
https://towardsdatascience.com/10-minutes-to-building-a-machine-learning-pipeline-with-apache-airflow-53cd09268977
)但是在构建并运行docker容器之后,当我尝试使用以下方法访问Web服务器时,Nginx 1.14出现了“502坏网关”错误:
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/;
}
}