Both Windows and Linux need to open cmd in the Nginx root directory to execute the command.
View version:
nginx -v
Start nginx:
start nginx
Stop nginx quickly:
nginx -s stop
Exit nginx normally:
nginx -s quit
Restart nginx:
nginx -s reload