当前位置:首页 > 服务器技术 > nginx

nginx 应用篇

nginx 信号控制(commanLine)

kill singel  pid

ps aux|grep nginx

技术分享图片

nginx 有两个进程,一个 master 一个worker

一个master管理一个或者多个worker

杀死worker进程   ps auxi|grep nginx(查看当前nginx进程)

kill -INT 26652

./sbin/nginx

ps aux|grep nginx

kill -INT 26661

 

term,int    (quick shutdown快速杀掉)

quit (graceful shutdown 优雅的杀掉进程)

hup  (configuration reload,start the new worker processes with a new configuration gracefully shutdown the old worker processes 改变配置文件,平滑的重读配置文件)

 

starting,quit,

 

原文:https://www.cnblogs.com/draglong/p/10260118.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!