Start, stop and other commands of Nginx under Windows

To use Nginx under Windows, we need to master some basic operation commands,
such as: starting and stopping Nginx services, reloading Nginx, etc. I will give some brief introductions below.
1. Start:
C:\server\nginx-1.0.2>start nginx or
C:\server\nginx-1.0.2>nginx.exe

2. Stop:
C:\server\nginx-1.0.2>nginx.exe -s stop or
C:\server\nginx-1.0.2>nginx.exe -s quit
Note: stop is to quickly stop nginx, which may not Save relevant information; quit is to stop nginx in a complete and orderly manner and save relevant information.

3. Reload Nginx:
C:\server\nginx-1.0.2>nginx.exe -s reload
This command is used when the configuration information is modified and these configurations need to be reloaded.

4. Reopen the log file:
C:\server\nginx-1.0.2>nginx.exe -s reopen

5. Check the Nginx version:
C:\server\nginx-1.0.2>nginx -v

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324915677&siteId=291194637