Listing 1. Configuration of the prefork MPM.
清单1. preforkMPM的配置。
In the prefork model, a new process is created per request.
prefork模型会为每个请求创建一个新进程。
The traditional model of one process per request is called prefork.
每个请求使用一个进程的传统模型称为 prefork。
The important configuration options for the prefork MPM are shown in Listing 1.
preforkMPM 的重要配置选项如清单 1所示。
Prefork is the safer choice; you should do careful testing if you choose worker.
而Prefork是较为安全的选择;如果选择了worker,则应该谨慎测试。
Only one MPM can be active at one time, and it must be compiled in statically with --with-mpm=(worker|prefork|event).
每次只能有一个MPM是活动的,必须使用 --with-mpm=(worker|prefork|event)静态编译。
The supported Web Servers are Apache 1.3.x (compiled in prefork mode only) and Apache 2.0.x (compiled in prefork mode only).
受支持的Web服务器是Apache 1.3 . x(仅以prefork模式进行编译)和Apache 2.0 . x(仅以prefork模式进行编译)。
The PHP community has stated that PHP can be used in production environments with Apache 2, as long as you use the prefork MPM to avoid thread-safety issues.
PHP社区声称,PHP可以在生产环境中与Apache2一起使用,只要您使用preforkMPM来避免线程安全性问题。
The PHP community has stated that PHP can be used in production environments with Apache 2, as long as you use the prefork MPM to avoid thread-safety issues.
PHP社区声称,PHP可以在生产环境中与Apache2一起使用,只要您使用preforkMPM来避免线程安全性问题。
应用推荐