退出/关闭/重启gunicorn进程

在工作中,会发现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

posted @ 2021-04-28 09:31  yongqi-911  阅读(172)  评论(0编辑  收藏  举报