Untitled Post - 1

在虚拟环境运行已经成功了。但是链接nginx出现了502错误。找了这个教程。明天再来研究吧。

https://www.datadoghq.com/blog/nginx-502-bad-gateway-errors-gunicorn/

https://www.datadoghq.com/blog/nginx-502-bad-gateway-errors-gunicorn/

成功解决了这个问题,教程用的是:https://linoxide.com/linux-how-to/install-flask-python-ubuntu/https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04

https://linoxide.com/linux-how-to/install-flask-python-ubuntu/

https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04

两个互相看一下。一开始我用的root账号,后来自己新建了一个账号就成功了。