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

How to stop command in nginx

藏色散人
Release: 2019-08-27 11:55:18
Original
34461 people have browsed it

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
Copy after login
Copy after login

2. Kill the process

[root@LinuxServer ~]# kill -QUIT 2072
Copy after login

linux nginx stop command 2. Quick stop

1. Check Process number

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

2. Kill the process

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

linux nginx stop command 3. Forced stop

[root@LinuxServer ~]# pkill -9 nginx
Copy after login

More Nginx related technical articles, Please visit the Nginx usage tutorial column 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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template