码迷,mamicode.com
首页 > 其他好文 > 详细

nginx 应用篇

时间:2019-01-12 18:01:24      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:comm   work   conf   应用   roc   reload   inf   quick   sbin   

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,

 

nginx 应用篇

标签:comm   work   conf   应用   roc   reload   inf   quick   sbin   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!