简体   繁体   English

gunicorn-启动并运行,但没有响应

[英]gunicorn - up and running but doesn't respond

I've been running my python server side with gunicorn for awhile and it worked perfectly 我已经用gunicorn运行我的python服务器端一段时间了,它运行良好

today it stopped returning results for some api calls, I pkill gunicorn and run with debug as python manage.py runserver 0.0.0.0:xxxx everything works fine 今天它停止返回一些api调用的结果,我pkill gunicorn并以python manage.py runserver 0.0.0.0:xxxx运行调试,一切正常

I have 2 questions: 我有两个问题:

  1. is there a way to create a log file of calls (like the output of runserver) 有没有一种方法可以创建调用的日志文件(例如runserver的输出)
  2. is there a way to monitor my server? 有没有办法监视我的服务器?

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM