Simple control of Nginx service

WBOY
Release: 2016-07-29 08:57:42
Original
846 people have browsed it

Introduction: This article briefly introduces the starting and stopping methods of Nginx.

1. Starting Nginx

Under the Linux platform, 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 the picture below:
Simple control of Nginx service
It is not difficult to find that Nginx started with the default configuration has two processes, one is the master process and the other is the worker process.

2. Stopping Nginx

Nginx has two ways to stop, one is quick stop (disconnect all links immediately), the other is gentle stop (keep the current link until it is actively disconnected, and no longer accept new ones during this period) the link to).
Quick stop: (The following figure describes the startup and quick stop process of nginx)
Simple control of Nginx service
Gently stop: (The following figure describes the startup and gentle stop process of nginx)
Simple control of Nginx service
In addition to using the stop and quit commands, you can also use the reopen and reload parameters to indicate restart and reload respectively.
Readers can use the following command to view the detailed parameter help information of nginx

<code>[root<span>@localhost</span> sbin]<span># ./nginx -h </span></code>
Copy after login

The execution results are shown in the figure below.
Simple control of Nginx service

References
1. "Detailed Explanation of Nginx High-Performance Web Server" edited by Miao Ze, Beijing: Electronic Industry Press, 2013.10

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the simple control of Nginx service, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template