What is the method to shut down nginx in ubuntu

WBOY
Release: 2023-05-11 23:43:23
forward
2421 people have browsed it

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

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 //强制停止
Copy after login

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!

Related labels:
source:yisu.com
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