1. Start:
C:\server\nginx-1.0.2>start nginx
or
C:\server\nginx-1.0.2>nginx.exe
Note: It is recommended to use the first one, and the second one will keep your cmd window in execution and cannot perform other command operations.
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 means to stop nginx quickly and may not save relevant information; quit means 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
Reference:
https://www.jianshu.com/p/01f3626cf25d