Gunicorn 卡在使用 pid: 9293 的 Booting worker

lea*_*ner 4 django nginx gunicorn

我正在尝试为我的项目部署实现 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
Run Code Online (Sandbox Code Playgroud)

因为,我是nginx& 的新手gunicorn,我不确定上面是否有错误。我在错误日志中什么也没得到

cat /var/log/nginx/error.log 
Run Code Online (Sandbox Code Playgroud)

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

mar*_*hep 6

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

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

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

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

  • 真的很令人困惑。该消息意味着它尚未启动。 (3认同)