python - 资源暂时不可用 : mod_wsgi (pid=28433): Unable to connect to WSGI daemon process

标签 python django apache mod-wsgi http-status-code-503

首先:我正在使用 Apache/2.2.31 (Unix) 和带有 WSGI 的 Django 1.8 开发网络服务器。

一切都很好,直到我对我的 views.py 文件做了一些更改并触摸 wsgi.py 以使更改生效。紧接着,每次我尝试使用浏览器访问我域中的任何页面时,它都会返回以下消息:

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Additionally, a 503 Service Temporarily Unavailable error was encountered while trying to use an ErrorDocument to handle the request.

我的 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解决了。

关于python - 资源暂时不可用 : mod_wsgi (pid=28433): Unable to connect to WSGI daemon process,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34504239/

相关文章:

python - 使用 python 3.3 时是否需要 python 包 virtualenv?

python - group-by 输出中 DateTimeFields 的 Django 时间戳列表

Django 登录 apache vhost 错误文件,如何修复

python - "' 反向ManyToOneDescriptor ' object has no attribute ' 全部 '"

python - 在 apache(linux 和 windows)上运行 python 脚本

apache - htaccess 将所有页面重定向到单个页面

python - 为什么只能从文本文件的开头到 `seek`?

python - 使用 str.startswith 的高阶函数

python - 如何使用 pytest 生成、读取和删除临时 csv 文件?

python - 乘以 Django Apache 服务器