前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >nginx基础13

nginx基础13

作者头像
franket
发布2022-05-12 23:09:03
1670
发布2022-05-12 23:09:03
举报
文章被收录于专栏:技术杂记技术杂记

重启

代码语言:javascript
复制
[root@h102 nginx]# ps fuax | grep nginx 
root     49758  0.0  0.0 103256   828 pts/0    S+   16:40   0:00          \_ grep nginx
root     44512  0.0  0.0  24316   676 ?        Ss   16:39   0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nobody   44513  0.0  0.0  24728  1244 ?        S    16:39   0:00  \_ nginx: worker process                                          
[root@h102 nginx]# kill -HUP 44512 
[root@h102 nginx]# ps fuax | grep nginx 
root     62744  0.0  0.0 103256   828 pts/0    S+   16:40   0:00          \_ grep nginx
root     44512  0.0  0.0  24316  1352 ?        Ss   16:39   0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nobody   60962  0.0  0.0  24732  1364 ?        S    16:40   0:00  \_ nginx: worker process                                          
[root@h102 nginx]# 

Nginx信号控制

信号

控制

TERM INT

快速关闭

QUIT

从容关闭

HUP

平滑重启,重新加载配置文件

USR1

重新打开日志文件,在切割日志时用途较大

USR2

平滑升级可执行程序

WINCH

从容关闭工作进程

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 重启
  • Nginx信号控制
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档