PM (FastCGI process manager) is used to replace most of the additional features of PHP FastCGI and is very useful for high load sites.

Its features include:

Support smooth stop/start advanced process management features; Can work with different Uids/Gids /chroot environments, listen on different ports and use different php.ini configuration files (instead of safe_mode Settings); Stdout and STderr logging; The ability to restart and cache broken Opcode in the event of an accident; File upload optimization support;" Slow log "- Logs abnormally slow scripts (not only file names, but also PHP backtrace information, which can be read and analyzed using ptrace or similar tools); Fastcgi_finish_request () - Special features: Used to continue the time-consuming work in the background (input video conversion, statistical processing, etc.) after the request is completed and data is refreshed; Dynamic/static child process generation; Basic SAPI health information (similar to Apache's mod_status); Php.ini based configuration file.

www.php.net/manual/zh/i…

Php-fpm stands for php-fastcgi Process Manager.

Php-fpm is an implementation of FastCGI and provides process management functionality.

Processes include master process and worker process.

There is only one master process, which is responsible for listening on the port and receiving requests from the Web Server, while there are generally multiple worker processes (the specific number can be configured according to actual needs). Each process has a PHP interpreter embedded inside, which is where THE PHP code is actually executed.

PHP FastCGI Process Manager (PHP FastCGI Process Manager)

(php.net/manual/zh/i… Most of the additional features of FastCGI in the PHP kernel (or an alternative PHP FastCGI implementation) are very useful for high-load websites. How does PHP-FPM work?

The PHP-FPM process manager consists of two types of processes, one Master process and multiple Worker processes. The Master process listens to the port, receives the request from the Web server, and then assigns the specific Worker process to handle the request. Worker processes generally have multiple processes (the number of processes depends on the configuration), and each process has a PHP interpreter embedded inside to execute PHP code. How does the Nginx server work with FastCGI

The Nginx server cannot communicate directly with the FastCGI server, so you need to enable the ngx_HTTP_fastcgi_module module for proxy configuration to send requests to the FastCGI service.

The above content hopes to help you, more free PHP factory PDF, PHP advanced architecture video materials, PHP wonderful good article can be wechat search concerns: PHP open source community

2021 Jinsanyin four big factory interview real questions collection, must see!

Four years of PHP technical articles collation collection – PHP framework

A collection of four years’ worth of PHP technical articles – Microservices Architecture

Distributed Architecture is a four-year collection of PHP technical articles

Four years of PHP technical essays – High Concurrency scenarios

Four years of elite PHP technical article collation collection – database