Common nginx commands 1. View nginx process 1 ps-ef | grep nginx Description: The nginx process consists of the main process and working process. Www.2cto.com 2. The nginx 1nginx startup result shows the main thread and worker thread of nginx. The number of worker threads is related to the configuration parameter worker_processes in nginx. conf. 3. Smoothly start nginx 1 kill-HUP 'cat/var/run/nginx. pid '2 or 3 nginx-s reload where the process file path is in the configuration file nginx. conf. Smooth start means restarting nginx without stopping nginx, reload the configuration file, start a new working thread, and stop the old working thread perfectly. 4. Stop nginx 1 kill-QUIT 'cat/var/run/nginx perfectly. pid '5. Quickly stop nginx 1 kill-TERM 'cat/var/run/nginx. pid '2 or 3 kill-int' cat/var/run/nginx. pid '6. Stop the Working Process perfectly (mainly used for smooth upgrade) 1 kill-WINCH 'cat/var/run/nginx. pid '7. Force stop nginx 1 pkill-9 nginx 8. Check for nginx. check whether the conf file is correctly modified. 1. nginx-t-c/etc/nginx. conf or nginx-t 9, stop nginx command 1 nginx-s stop10, view nginx version information 1 nginx-v 11, View complete nginx configuration information 1 nginx-V