问题描述
我正在尝试在macports上使用fpm安装php.我在某处读到fpm表示FastCGI进程管理器.这是否意味着fastcgi和fpm相同?如果它们相同,那么为什么我们有两个不同的Macports变种,分别是php"php5 + fastcgi" 和"php5 + fpm"
I am trying to install php with fpm on macports. I read somewhere that fpm means FastCGI process manager. Does that mean fastcgi and fpm are same? If they are same, then why do we have two different macports variants for php namely"php5 +fastcgi" and "php5 +fpm"
推荐答案
FPM 是一个过程管理器,用于管理PHP中的FastCGI SAPI(服务器API).
FPM is a process manager to manage the FastCGI SAPI (Server API) in PHP.
基本上,它取代了对 SpawnFCGI 之类的需求.它会自适应地生成FastCGI子级(意味着如果当前负载需要它,可以启动更多子级).
Basically, it replaces the need for something like SpawnFCGI. It spawns the FastCGI children adaptively (meaning launching more if the current load requires it).
否则,它与FastCGI之间没有太大的操作区别(从请求开始到结束的请求管道是相同的).只是为了使它的实现变得容易.
Otherwise, there's not much operating difference between it and FastCGI (The request pipeline from start of request to end is the same). It's just there to make implementing it easier.
这篇关于fastcgi和fpm有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!