Home  >  Article  >  Operation and Maintenance  >  How to restart nginx in linux?

How to restart nginx in linux?

青灯夜游
青灯夜游Original
2019-06-17 17:36:5116413browse

Nginx (engine x) is a high-performance HTTP and reverse proxy web server, and also provides IMAP/POP3/SMTP services. It releases its source code under a BSD-like license and is known for its stability, rich feature set, sample configuration files, and low system resource consumption.

How to restart nginx in linux?

Nginx is a lightweight web server/reverse proxy server and email (IMAP/POP3) proxy server, released under the BSD-like protocol. Its characteristics are that it occupies less memory and has strong concurrency capabilities. In fact, nginx's concurrency capabilities do perform better among web servers of the same type.

So how to restart nginx in linux?

Method 1: Enter the nginx executable directory bin and enter the following command.

./nginx -s reload

How to restart nginx in linux?

Method 2: Find the current nginx process number, and then enter the command:

kill -HUP 进程号

Restart the nginx service

How to restart nginx in linux?

The above is the detailed content of How to restart nginx in linux?. 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