1. Start command
(Recommended tutorial: nginx tutorial)
C:\server\nginx-1.0.2>start nginx 或 C:\server\nginx-1.0.2>nginx.exe
2. Stop command
C:\server\nginx-1.0.2>nginx.exe -s stop 或 C:\server\nginx-1.0.2>nginx.exe -s quit
Note: stop is to stop nginx quickly and may not save relevant information; quit is to stop nginx completely and orderly, and save relevant information.
3. Reload Nginx:
C:\server\nginx-1.0.2>nginx.exe -s reload
Use this command 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
The above is the detailed content of Introduction to the start and stop commands of nginx under windows. For more information, please follow other related articles on the PHP Chinese website!