Windows Nginx start and stop commands

Using Nginx on Windows, we need to master some basic operation commands, such as: start, stop Nginx service, reload Nginx, etc., below I will introduce some simple. 1. Startup:

C: \ \ nginx server – 1.0.2 > start nginx

or

C: \ \ nginx server – 1.0.2 > nginx. Exe

Note: It is recommended to use the first option, the second option will keep your CMD window in execution and cannot perform other command operations.

2. Stop:

C: \ \ nginx server – 1.0.2 > nginx. Exe – s stop

or

C: \ \ nginx server – 1.0.2 > nginx. Exe – s quit

Or end the process in Task Manager with CTRL + Shift + ECS

Note: stop is to stop nginx quickly, and may not save related information; Quit is a complete and orderly stop to nginx and save the information.

Reload Nginx:

C: \ \ nginx server – 1.0.2 > nginx. Exe – s reload

This command is used when the configuration information is modified and needs to be reloaded.

4, Open the log file again:

C: \ \ nginx server – 1.0.2 > nginx. Exe -s reopen

5, Check Nginx version:

C: \ \ nginx server – 1.0.2 > nginx – v