How to close nginx in ubuntu:
1. Open the terminal command line.
2. First enter the following command to view the nginx process number.
# ps -ef|grep nginx
Assume that the process number pid is: 123
2. Then enter the following command to kill the process and shut down nginx.
# kill -QUIT 123 //从容停止 # kill -TERM 123 或 [root@LinuxServer ~] # kill -INT 123 //快速停止 # pkill -9 nginx //强制停止
The above is the detailed content of What is the method to shut down nginx in ubuntu. For more information, please follow other related articles on the PHP Chinese website!