首先:我正在使用Apache / 2.2.31(Unix)和带有WSGI的Django 1.8的Web服务器上工作。
一切都很好,直到我对views.py文件进行了一些更改并触摸了wsgi.py才能使更改生效。之后,每次我尝试使用浏览器访问域中的任何页面时,它都会返回以下消息:
服务暂时不可用
由于维护停机或容量问题,服务器暂时无法满足您的请求。请稍后再试。
此外,尝试使用ErrorDocument来处理请求时,遇到503服务临时不可用错误。
我的Apache的error_log具有以下条目:
[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的问题。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句