看了好多php-fpm的文章以及fastcgi文章,总结几点:
1.fastcgi这个概念有人说是windows提出的
2.windows下,是没有php-fpm的,有的是 php-cgi.exe
3.我们经常在nginx中,配置fastcgi的配置:
location ~ \.php$ {
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_intercept_errors on;
include /usr/local/etc/nginx/fastcgi.conf;
}
windows下的nginx也支持这种fastcgi配置,但是‘PHP_FCGI_CHILDREN’ 这个环境变量只在linux下有效,windows下不会产生fastcgi的子进程(windows下好像只能产生线程,热fastcgi需要产生进程,我也不懂。。),导致windows下其实并不支持nginx这种多并发。
可参照下面几个文章解决:
stackoverflow上的 php-fpm for Windows?