gpt4 book ai didi

python - 错误: 502 bad gateway in flask app on nginx and uwsgi

转载 作者:太空宇宙 更新时间:2023-11-04 04:36:03 25 4
gpt4 key购买 nike

我正在使用 Nginix、uWSGI 在 Ubuntu 服务器上部署 Flask 应用程序。我按照本教程... http://www.soundrenalin.com/about

我是 Nignix 和系统管理的初学者。

但是当我运行我的应用程序时,它给出错误:502 Bad Gateway

我查看了日志文件,它说:

Starting uWSGI 1.2.3-debian (32bit) on [Sun May 19 05:39:19 2013] 
***compiled with version: 4.7.1 on 17 September 2012 17:20:40 detected number of CPU cores: 1 current working directory: /etc/uwsgi/apps-enabled detected binary path: /usr/bin/uwsgi-core your memory page size is 4096 bytes detected max file descriptor number: 1024
lock engine: pthread robust mutexesunlink(): Operation not permitted [socket.c line 75]
bind(): Address already in use [socket.c line 107] removed uwsgi instance flaskapp.ini

为什么会发生这种情况?请提出建议

最佳答案

查看同一 URL ( https://github.com/kholidfu/serverthings/blob/master/serversetup.org ) 中的新文档。虽然是印尼语,但是到处都是代码片段,希望你能看懂

关于python - 错误: 502 bad gateway in flask app on nginx and uwsgi,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16632859/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com