1. Basic commands
run nginx start nginx
Stop nginx nginx -s stop quickly shut down nginx, may not save relevant information, and quickly terminate the web service.
Nginx -s quit Shut down nginx smoothly, save relevant information, and end the web service according to arrangements
Restarting nginx nginx -s reload has changed the nginx related configuration and needs to be reloaded to reload the configuration;
reopen log files nginx -s reopen reopen log files
Two, open
method 1:
Enter cmd to open
Method 2:
hold shift mail -- open powershell window here