【问题标题】:gunicorn - up and running but doesn't respondgunicorn - 启动并运行但没有响应
【发布时间】:2014-11-04 18:51:00
【问题描述】:

我用 gunicorn 运行我的 python 服务器端已经有一段时间了,它运行良好

今天它停止返回一些 api 调用的结果,我 pkill gunicorn 并以python manage.py runserver 0.0.0.0:xxxx 的身份运行调试一切正常

我有两个问题:

  1. 有没有办法创建调用日志文件(如 runserver 的输出)
  2. 有没有办法监控我的服务器?

【问题讨论】:

  • 你的 gunicorn 是面向公众还是在像 nginx 这样的代理服务器后面?
  • 如果我在像 nginx 这样的代理服务器后面没有错

标签: python monitoring gunicorn


【解决方案1】:

使用--log-file=-在命令行(stderr)输出错误,例如:

gunicorn base.wsgi -c config.conf --log-file=-

【讨论】:

    猜你喜欢
    • 2020-05-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多