退出/关闭/重启gunicorn进程
时间:2021-04-28 11:26:09
收藏:0
阅读:34
在工作中,会发现gunicorn启动的web服务,无论怎么使用kill -9 进程号都是无法杀死gunicorn,经过我一番百度和谷歌,发现想要删除gunicorn进程其实很简单。
https://www.cnblogs.com/huchong/p/9844024.html
1. 寻找masterpid
通过执行如下命令,可以获取Gunicorn进程树:pstree -ap|grep gunicorn
重启Gunicorn任务
kill -HUP 29863
关闭Gunicorn任务
kill -9 pid
原文:https://www.cnblogs.com/gina11/p/14711864.html
评论(0)