[Reproduced] Nginx start, stop and other commands under Windows

http://wanganwu.blog.163.com/blog/static/7788722012322111417966/


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 service, reloading Nginx, etc. Below, I will give a brief introduction.
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 no other command operations can be performed.

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

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

Guess you like

Origin blog.csdn.net/michael_f2008/article/details/83054944