nginx -s reload : Reload takes effect after modifying the configuration
nginx -s reopen : reopen the log file
nginx -t -c /path/to/nginx.conf to test whether the nginx configuration file is correct
. Shut down nginx:
nginx -s stop : stop nginx quickly quit : stop
nginx in a complete and orderly manner
nginx method:
ps -ef | grep nginx
kill -QUIT main process number: stop Nginx calmly kill -TERM main process
number: quickly stop Nginx
pkill -9 nginx: forcibly stop Nginx and
start nginx:
nginx -c /path/to/nginx. conf
restarts nginx smoothly:
kill -HUP main process number
nginx -t -c /path/to/nginx.conf to test whether the nginx configuration file is correct
. Shut down nginx:
nginx -s stop : stop nginx quickly quit : stop
nginx in a complete and orderly manner
nginx method:
ps -ef | grep nginx
kill -QUIT main process number: stop Nginx calmly kill -TERM main process
number: quickly stop Nginx
pkill -9 nginx: forcibly stop Nginx and
start nginx:
nginx -c /path/to/nginx. conf
restarts nginx smoothly:
kill -HUP main process number