nginx总结

nginx总结

nginx常用命令
启动

nginx

-s quit是正常停止。

nginx -s quit

-s stop是强制停止

nginx -s stop

启动状态下重新加载配置文件

nginx -s reload

查看nginx进程

ps aux|grep nginx

关于Gunicorn 的终止进程

显示主进程pid
pstree -ap | grep gunicorn

杀掉这个主进程就ok
kill -9 查询出的pid

关于Gunicorn 的启动进程

gunicorn myproject.wsgi

gunicorn -w 4 -b 0.0.0.0:8000 wsgi:app

重启Gunicorn任务

kill -HUP 起点pid

posted @ 2022-04-24 15:33  南瓜头pumpkin  阅读(10)  评论(0)    收藏  举报