开启Gunicorn任务 gunicorn --bind unix:/tmp/域名.socket projectname.wsgi:application 查找masterpid 首先获取Gunicorn进程树,获取进程pid pstree -ap|grep gunicorn 可以看到,29585为主进程 重启Gunicorn任务 kill -HUP pid 退出Gunicorn任务 kill -9 pid 再次查看Gunicorn进程树,可以看到主进程已经停止