1、gunicorn开启
在项目的根目录下,输入下方的代码。
gunicorn --bind unix:/tmp/域名.socket projectname.wsgi:application
2、查询
首先执行如下命令获取Gunicorn进程树:
pstree -ap|grep gunicorn
3、关闭
首先执行如下命令获取Gunicorn进程树:
pstree -ap|grep gunicorn
之后输入如下指令关闭进程:
kill -9 pid
4、重启
输入如下指令重启进程:
kill -HUP pid
 

相关文章:

  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2022-01-06
猜你喜欢
  • 2021-11-11
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案