Common nginx commands

Source: Internet
Author: User
Common nginx commands 1. view the nginx process 1ps-ef | grepnginx description: The nginx process consists of the main process and working process. Www.2cto. com2 and nginx1nginx startup results show the main thread and worker thread of nginx. the number of worker threads is the same as that of nginx. configuration parameters in conf... 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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.