停止Nginx服务

查询nginx进程信息
chen@ubuntu:~$ ps -ef |grep nginx
root        933      1  0 20:18 ?        00:00:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data    934    933  0 20:18 ?        00:00:00 nginx: worker process
chen     7022   5627  0 21:06 pts/1    00:00:00 grep --color=auto nginx
chen@ubuntu:~$ 
sudo kill -QUIT 933

933为master的进程号
原文地址:https://www.cnblogs.com/gcgc/p/10126270.html