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

nginx基础11

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

停止

nginx是通过给Nginx主进程发系统信号的方式来停止的

从容停止
代码语言:javascript
复制
[root@h102 logs]# ps faux | grep nginx 
root     11909  0.0  0.0 103256   828 pts/0    S+   15:31   0:00          \_ grep nginx
root     11756  0.0  0.0  24316   676 ?        Ss   15:23   0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nobody   11757  0.0  0.0  24728  1244 ?        S    15:23   0:00  \_ nginx: worker process                                          
[root@h102 logs]# kill -QUIT 11756 
[root@h102 logs]# ps faux | grep nginx 
root     11914  0.0  0.0 103256   824 pts/0    S+   15:32   0:00          \_ grep nginx
[root@h102 logs]# 
快速停止
代码语言:javascript
复制
[root@h102 logs]# ps faux | grep nginx 
root     11947  0.0  0.0 103256   828 pts/0    S+   15:42   0:00          \_ grep nginx
root     11923  0.0  0.0  24316   676 ?        Ss   15:34   0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nobody   11924  0.0  0.0  24728  1512 ?        S    15:34   0:00  \_ nginx: worker process                                          
[root@h102 logs]# kill -TERM 11923
[root@h102 logs]# ps faux | grep nginx 
root     11950  0.0  0.0 103256   824 pts/0    S+   15:42   0:00          \_ grep nginx
[root@h102 logs]# 
代码语言:javascript
复制
[root@h102 logs]# ps faux | grep nginx 
root     11961  0.0  0.0 103256   828 pts/0    S+   15:43   0:00          \_ grep nginx
root     11957  0.0  0.0  24316   680 ?        Ss   15:43   0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
nobody   11958  0.0  0.0  24728  1516 ?        S    15:43   0:00  \_ nginx: worker process                                          
[root@h102 logs]# kill  -INT 11957 
[root@h102 logs]# ps faux | grep nginx 
root     11964  0.0  0.0 103256   828 pts/0    S+   15:43   0:00          \_ grep nginx
[root@h102 logs]# 

本文系转载,前往查看

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

本文系转载前往查看

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

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 停止
    • 从容停止
      • 快速停止
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档