The master process is the primary process that creates the manager process and the reactor thread, such as work-in/thread
The reactor thread actually runs the Epoll instance, which is used to accept the link to the client and sends a request to the manager process that is the management process that is created to manage all worker processes and taskworker processes
The worker process is a worker process, and all business logic is made in that process, and when the reactor thread receives data from the client, the data is packaged and sent to a worker process through a pipeline
Nginx process number setting is generally equal to the number of cores, high-traffic concurrency can also be considered to increase the number of processes to CPU cores * 2
[[email protected] swool] # 1
/proc is a pseudo file system that only exists in memory, and does not occupy the storage space, in the way of file system, provides an interface for accessing system kernel data, so users and applications can get system information through proc, and can change kernel parameters
Master process and worker process