请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

nginx服务 关闭不了

[root@iZuf6inlskt1jxltie9koyZ home]# ps -ef |grep nginx

root     11874     1  0 11月29 ?      00:00:00 nginx: master process nginx

nginx    11875 11874  0 11月29 ?      00:00:00 nginx: worker process

root     14126 13609  0 14:19 pts/0    00:00:00 grep --color=auto nginx

[root@iZuf6inlskt1jxltie9koyZ home]# service nginx stop

Redirecting to /bin/systemctl stop nginx.service

[root@iZuf6inlskt1jxltie9koyZ home]# ps -ef |grep nginx

root     11874     1  0 11月29 ?      00:00:00 nginx: master process nginx

nginx    11875 11874  0 11月29 ?      00:00:00 nginx: worker process

root     14144 13609  0 14:19 pts/0    00:00:00 grep --color=auto nginx

[root@iZuf6inlskt1jxltie9koyZ home]# 


正在回答 回答被采纳积分+3

插入代码

2回答

编程浪子 2017-11-30 22:02:41

这篇文章 http://blog.csdn.net/harry_haiwei/article/details/52710538

0 回复 有任何疑惑可以回复我~
编程浪子 2017-11-30 22:02:03

可以试试这几个


Nginx的停止

 

Nginx支持以下几种信号控制:

 

TERM, INT 快速关闭

QUIT 从容关闭

HUP 平滑重启

USR1 重新打开日志文件,在切割文件时用处大

USR2 平滑升级

WINCH 从容关闭工作进程

我们可以通过信号停止Nginx主进程,首先,我们需要通过 ps -ef | grep 命令获得master进程的PID,或者通过cat pid文件获得主进程号。下面是几个典型的停止语句:

 

#从容停止Nginx  

kill -QUIT master进程号  

#快速停止Nginx  

kill -TERM master进程号  

#强制停止Nginx  

kill -9 master进程号  

Nginx的重加载


0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
快速上手Linux 玩转典型应用
  • 参与学习       1663    人
  • 解答问题       572    个

以主流CentOS 7 操作系统为例,系统讲解Linux,真实线上环境助你快速上手,独立配置运维服务器

了解课程
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号