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所示。
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 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来避免线程安全性问题。
Prefork is the safer choice; you should do careful testing if you choose worker.
而Prefork是较为安全的选择;如果选择了worker,则应该谨慎测试。
Prefork is the safer choice; you should do careful testing if you choose worker.
而Prefork是较为安全的选择;如果选择了worker,则应该谨慎测试。
应用推荐