Apache Prefork 与 Worker MPM [英] Apache Prefork vs Worker MPM

查看:24
本文介绍了Apache Prefork 与 Worker MPM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查看 Apache 配置文件,我看到定义了 Prefork 和 Worker MPM.有什么区别,Apache 使用的是哪个?

Looking at the Apache config file, I see Prefork and Worker MPM defined. What is the difference and which one is Apache using?

推荐答案

Prefork 和 worker 是 apache 提供的两种 MPM 类型.两者各有优缺点.

Prefork and worker are two type of MPM apache provides. Both have their merits and demerits.

默认情况下,mpm 是线程安全的 prefork.

By default mpm is prefork which is thread safe.

Prefork MPM 使用多个子进程,每个子进程有一个线程,每个进程一次处理一个连接.

Prefork MPM uses multiple child processes with one thread each and each process handles one connection at a time.

Worker MPM 使用多个子进程,每个子进程都有多个线程.每个线程一次处理一个连接.

Worker MPM uses multiple child processes with many threads each. Each thread handles one connection at a time.

有关更多详细信息,您可以访问 https://httpd.apache.org/docs/2.4/mpm.htmlhttps://httpd.apache.org/docs/2.4/mod/prefork.html

For more details you can visit https://httpd.apache.org/docs/2.4/mpm.html and https://httpd.apache.org/docs/2.4/mod/prefork.html

这篇关于Apache Prefork 与 Worker MPM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆