Home >Operation and Maintenance >Nginx >How to restart nginx in linux?
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.
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
Method 2: Find the current nginx process number, and then enter the command:
kill -HUP 进程号
Restart the nginx service
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!