【问题标题】:Gunicorn stuck at Booting worker with pid: 9293Gunicorn 用 pid:9293 卡在 Booting worker
【发布时间】:2016-05-19 19:32:38
【问题描述】:

我正在尝试为我的项目部署实施 nginx + django + gunicorn。我正在以下文章的帮助下: http://tutos.readthedocs.io/en/latest/source/ndg.html 。我按照描述的步骤进行操作。现在,我正在尝试启动 gunicorn。我在屏幕上看到的是:

$ gunicorn ourcase.wsgi:application
[2016-05-19 19:24:25 +0000] [9290] [INFO] Starting gunicorn 19.5.0
[2016-05-19 19:24:25 +0000] [9290] [INFO] Listening at: http://127.0.0.1:8000 (9290)
[2016-05-19 19:24:25 +0000] [9290] [INFO] Using worker: sync
[2016-05-19 19:24:25 +0000] [9293] [INFO] Booting worker with pid: 9293

由于我是nginxgunicorn 的新手,我不确定以上是否有错误。我在错误日志中什么也没有得到

cat /var/log/nginx/error.log 

它不会在屏幕上打印任何内容。请帮我解决这个问题。

【问题讨论】:

    标签: django nginx gunicorn


    【解决方案1】:

    该输出意味着该进程正在运行。这就是你想要的。您应该尝试在运行命令后直接从浏览器访问 URL,而不按 ctrl+c

    作为旁注,您可以编写一个 bash 脚本来执行此操作,这样可以更轻松地向 gunicorn 命令添加参数。

    我有一个可以做到这一点的要点。 https://gist.github.com/marcusshepp/129c822e2065e20122d8

    让我知道您可能还有什么其他问题,我会添加评论。

    【讨论】:

    • 相当混乱,真的。该消息暗示它尚未启动。
    猜你喜欢
    • 2012-06-06
    • 2021-09-29
    • 1970-01-01
    • 2022-11-14
    • 2022-12-25
    • 2018-04-23
    • 1970-01-01
    • 2015-01-14
    • 2021-03-07
    相关资源
    最近更新 更多