Nginx -s reload: the configuration is modified and reloaded. Nginx -s reopen: the log file is reopened. Nginx -t -c /path/to/nginx.conf Tests whether the nginx configuration file is correctCopy the code

Close the nginx:

Nginx -s stop: stops nginx quickly. Quit: stops nginx in an orderly mannerCopy the code

Other ways to stop nginx:

Ps - ef | grep nginx kill the QUIT main process number: easy to stop nginx kill TERM main process number: quick stop nginx pkill 9 nginx: forced stop nginxCopy the code

Nginx start:

nginx -c /path/to/nginx.conf
Copy the code

Smooth restart nginx:

Kill -hup Indicates the id of the main processCopy the code