Simple Nginx service control

Source: Internet
Author: User
: This article mainly introduces the simple control of the Nginx service. if you are interested in the PHP Tutorial, refer to it. Introduction: This article briefly introduces how to start and stop Nginx.

1. start Nginx

On Linux, to start the Nginx service, you only need to locate the working directory to the Nginx installation directory and execute it directly. As shown in:

It is not difficult to find that Nginx started through the default configuration has two processes, one being the master process and the other being the worker process ).

2. stop Nginx

Nginx has two stop methods: Quick Stop (disconnect all links immediately) and gentle stop (keep the current link until it is actively disconnected, new links will not be accepted during this period ).
Quick Stop: (describes the nginx startup and quick stop processes)

Gentle stop: (describes the start and gentle stop processes of nginx)

In addition to the stop and quit commands, you can also use the reopen and reload parameters to restart and reload.
You can use the following command to view detailed nginx parameter help information:

[Root @ localhost sbin] #./nginx-h

Shows the execution result.

References
1. edited by Miao Ze, Nginx high-performance Web server, Beijing: Electronics industry press, 2013.10

'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
  • '). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script

    The above introduces the simple control of the Nginx service, including some content, and hope to be helpful to friends who are interested in the PHP Tutorial.

    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.