首先:我正在使用Apache/2.2.31(Unix)和Django 1.8和WSGI开发一个web服务器。
在我对views.py文件做了一些更改并触摸wsgi.py以使更改生效之前,一切都很好。紧接着,每次我试图用浏览器访问我域中的任何页面时,它都会返回以下消息:
服务暂时不可用
由于以下原因,服务器暂时无法为您的请求提供服务
维护停机时间或容量问题。请稍后再试。
另外,一个503服务暂时不可用的错误是
尝试使用ErrorDocument处理
请求。
我的Apache错误日志有以下条目:

[Mon Dec 28 23:06:02 2015] [error] [client xx.xx.xx.xx] (11)Resource temporarily unavailable: mod_wsgi (pid=24172): Unable to connect to WSGI daemon process 'name_of_my_project' on '/route/to/apache/log/wsgi.1922.18.1.sock' after multiple attempts as listener backlog limit was exceeded., referer: http://myproject.com/
[Mon Dec 28 23:06:17 2015] [error] [client xx.xx.xx.xx] (11)Resource temporarily unavailable: mod_wsgi (pid=24172): Unable to connect to WSGI daemon process 'name_of_my_project' on '/route/to/apache/log/wsgi.1922.18.1.sock' after multiple attempts as listener backlog limit was exceeded., referer: http://myproject.com/
[Mon Dec 28 23:16:02 2015] [error] [client xx.xx.xx.xx] (11)Resource temporarily unavailable: mod_wsgi (pid=28572): Unable to connect to WSGI daemon process 'name_of_my_project' on '/route/to/apache/log/wsgi.1922.18.1.sock' after multiple attempts as listener backlog limit was exceeded.
[Mon Dec 28 23:16:17 2015] [error] [client xx.xx.xx.xx] (11)Resource temporarily unavailable: mod_wsgi (pid=28572): Unable to connect to WSGI daemon process 'name_of_my_project' on '/route/to/apache/log/wsgi.1922.18.1.sock' after multiple attempts as listener backlog limit was exceeded.

我找了一整天的解决方案,发现了这个:https://groups.google.com/forum/#!topic/modwsgi/H7qPoqYNJdI
还有一个未回答的问题:https://stackoverflow.com/questions/33549891/mod-wsgi-returning-503-service-unavailable
但我不知道怎么解决。求你了,帮帮我。

最佳答案

在没有找到答案之后,我解决了重启Apache的问题。

关于python - 资源暂时不可用:mod_wsgi(pid = 28433):无法连接到WSGI守护进程,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34504239/

10-12 17:17