Blogger Information
Blog 16
fans 0
comment 0
visits 14631
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
nginx信号量
进击的小菜鸟
Original
724 people have browsed it

语法  

kill  信号选项   nginx的主进程号

nginx 由一个主进程和几个子进程负责,子进程负责处理请求  主进程控制子进程

信号选项

TERM,INT   快速杀死

QUIT       请求结束后关闭

HUP    改变配置文件后,平滑的重读配置文件(在修改配置后可以不用重启使新的配置生效),创建新的子进程,并使用新的配置文件

  当久的子进程正在进行的工作完成后就关闭,使用新的子进程

USR1          重读日志文件,在日志按月/日分割时有用

USR2          平滑的读

WINCH       关闭旧的进程

ps aus|grep  nginx  查看nginx的进程号

cat logs/nginx.pid   获取nginx主进程号

kill -HUP 'cat logs/nginx.pid'  


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!