Home>Article>Operation and Maintenance> 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!