nginx服务 关闭不了
来源:7-3 Nginx的基本操作

慕哥3993229
2017-11-30
[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]#
2回答
-
编程浪子
2017-11-30
这篇文章 http://blog.csdn.net/harry_haiwei/article/details/52710538
00 -
编程浪子
2017-11-30
可以试试这几个
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的重加载
00
相似问题