Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/55.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 错误:nginx和uwsgi上flask应用程序中的502网关错误_Python_Linux_Ubuntu_Nginx_Flask - Fatal编程技术网

Python 错误:nginx和uwsgi上flask应用程序中的502网关错误

Python 错误:nginx和uwsgi上flask应用程序中的502网关错误,python,linux,ubuntu,nginx,flask,Python,Linux,Ubuntu,Nginx,Flask,我正在使用Nginix,uWSGI在Ubuntu服务器上部署一个flask应用程序。我遵循了这个教程 我是Nignix和系统管理员的初学者 但当我运行我的应用程序时,它给出了错误:502坏网关 我查看了日志文件,它说: 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 nu

我正在使用Nginix,uWSGI在Ubuntu服务器上部署一个flask应用程序。我遵循了这个教程

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

但当我运行我的应用程序时,它给出了错误:502坏网关

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

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中的新文档。它是印尼文的,但到处都有代码片段,希望您能理解它

截至2014年5月30日的死链接。