On the nginx server, what are the Master process and Worker process?

王林
Release: 2020-07-14 17:37:06
forward
7035 people have browsed it

On the nginx server, what are the Master process and Worker process?

Master process

(Recommended tutorial: nginx tutorial)

The master process is the main process, which will create the Manager Processes and Reactor threads etc. work into/threads.

The Reactor thread actually runs the epoll instance, which is used to accept connections and requests from clients. The Manager process is a management process. This process is used to create and manage all worker processes and TaskWorker processes, and TaskWorker is a child process directly generated by the manager.

Worker process

The worker process is a working process, and all business logic is performed in this process. When the Reactor thread receives the data from the client, it will package the data and send it to the A Worker process.

The above is the detailed content of On the nginx server, what are the Master process and Worker process?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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