Home>Article>Operation and Maintenance> How to stop command in nginx

How to stop command in nginx

藏色散人
藏色散人 Original
2019-08-27 11:55:18 34130browse

How to stop command in nginx

How to stop nginx and what is the command?

If we want to stop the nginx service under Linux, we need to control it through commands. The following is a summary of the relevant knowledge about nginx stop commands under Linux. I hope it will be helpful to everyone!

Linux nginx stop command detailed explanation

There are three ways to stop nginx:

linux nginx stop command 1. Stop calmly

1. Check the process number

[root@LinuxServer ~]# ps -ef|grep nginx

2. Kill the process

[root@LinuxServer ~]# kill -QUIT 2072

linux nginx stop command 2. Quick stop

1. Check Process number

[root@LinuxServer ~]# ps -ef|grep nginx

2. Kill the process

[root@LinuxServer ~]# kill -TERM 2132 或 [root@LinuxServer ~]# kill -INT 2132

linux nginx stop command 3. Forced stop

[root@LinuxServer ~]# pkill -9 nginx

More Nginx related technical articles, Please visit theNginx usage tutorialcolumn to learn!

The above is the detailed content of How to stop command in nginx. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to start nginx script Next article:How to start nginx script