Doc*_*r J 4 python wsgi flask gunicorn
如何以编程方式从 Gunicorn 中运行的 WSGI 应用程序中检索 Gunicorn 工作人员的当前数量?如果这有什么不同,我正在使用 Flask。
Pet*_*ter 7
从终端:
ps aux | grep gunicorn | grep -v grep | wc -l
gunicorn 可能是命令中存在的应用程序名称(如果您只运行一个应用程序,则此示例可以正常工作,否则它将显示所有应用程序的工作人员总数)
gunicorn
归档时间:
10 年,7 月 前
查看次数:
3132 次
最近记录: