Home >Operation and Maintenance >Nginx >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!