nginx server restart command, close

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326165553&siteId=291194637