Nginx commonly used commands in cmd

Verify that the configuration (nginx.conf) is correct:
nginx -t

Check the version number of Nginx:
nginx -V

Start Nginx:
start nginx

Quickly stop or shut down Nginx:
nginx -s stop

Stop or shut down Nginx normally:
nginx -s quit

Configuration file modification and reload command:
nginx -s reload

Guess you like

Origin blog.csdn.net/qq_41536934/article/details/112302827