PHP-FPM operating principle

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https: //blog.csdn.net/qiufengwuqing123/article/details/86498670
as a "shoot porn" programmers at work often focus only on the use of language, while ignoring the underlying principle and logic, recently taking the time to make some sort of knowledge.

php-fpm php interview is a common test sites, I will now say something briefly described by the flowchart process.

1, when the client to access the corresponding address index.php, is first to nginx server side,

2, nginx routing rules match, then loads the corresponding module fast-cgi,

3, fast-cgi snoop port address 9000, then it will request reaches index.php port 9000,

4, php-fpm been monitoring this time will receive the corresponding request, and then start the worker process, processes it, and returns the result to nginx, nginx back corresponding results to the client.
----------------

 

Guess you like

Origin www.cnblogs.com/yyhhblog/p/11445740.html