nginx -s reload: Modify the configuration and reload it to take effect
nginx -s reopen: Reopen the log file
nginx -t -c /path/to/nginx.conf Test whether the nginx configuration file is correct
Close nginx:
nginx -s stop : Stop nginx quickly
Quit : Stop nginx completely and orderly
Other ways to stop nginx:
ps -ef | grep nginx
kill -QUIT main process number : Stop Nginx calmly
kill -TERM main process number : Stop Nginx quickly
pkill -9 nginx : Force stop Nginx
Start nginx:
nginx -c /path/to/nginx.conf
Restart nginx smoothly:
kill -HUP main process number
The above introduces the commonly used commands of nginx server, including related content. I hope it will be helpful to friends who are interested in PHP tutorials.