Windows Nginx Start, stop, and other commands
Under Windows to use Nginx, we need to master some basic operational commands, such as: Start, stop Nginx service, Reload Nginx, and so on, I will do some simple introduction.
1. Start:
C:\server\nginx-1.0.2>start Nginx
Or
C:\server\nginx-1.0.2>nginx.exe
Note: The first one is recommended, the second will keep your cmd window in execution and cannot be manipulated by other commands.
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 a quick stop nginx, may not save the relevant information; Quit is a complete and orderly stop nginx, and save the relevant information.
3. Re-loading Nginx:
C:\server\nginx-1.0.2>nginx.exe-s Reload
This command is used when configuration information is modified and needs to be re-loaded in these configurations.
4. Reopen the log file:
C:\server\nginx-1.0.2>nginx.exe-s Reopen
5. View Nginx Version:
C:\server\nginx-1.0.2>nginx-v
Windows Nginx Start, stop and other commands (GO)