84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
我们都知道nginx解析到php请求会把这个请求转给fpm来处理,我想自己写个简单的web服务器,然后现在也能解析到是php请求,就是对于怎么像nginx那样把请求传递给fpm然后接收fpm的处理返回信息这块儿不太明白,粗略的看了下nginx的源代码也没找到这块儿相关的代码,所以请大家帮忙给个简单的demo示例或者有知道nginx这块儿的代码在哪个位置的也行,我自己去看
What you need to understand is the CGI and FastCGI protocols. Just like the HTTP protocol used between the browser and Nginx, the FastCGI protocol is used to communicate between Nginx and PHP-FPM.
A simple WebServer Demo https://github.com/zhoumengka... The original poster can refer to this idea
What you need to understand is the CGI and FastCGI protocols. Just like the HTTP protocol used between the browser and Nginx, the FastCGI protocol is used to communicate between Nginx and PHP-FPM.
A simple WebServer Demo https://github.com/zhoumengka... The original poster can refer to this idea