阿帕奇prefork VS工人MPM [英] Apache Prefork vs Worker MPM

查看:167
本文介绍了阿帕奇prefork VS工人MPM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看着Apache的配置文件,我看到了prefork和工人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和工人都是类型的两个MPM Apache提供。两者都有自己的优点和缺点。

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.

工人MPM使用多个子进程,每个许多线程。每个线程处理一次一个连接。

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

有关详细信息,您可以访问<一个href=\"http://$c$cbucket.co.in/apache-$p$pfork-or-worker/\">http://$c$cbucket.co.in/apache-$p$pfork-or-worker/

For more details you can visit http://codebucket.co.in/apache-prefork-or-worker/

和Apache的prefork设置,您可以阅读以下博客<一href=\"http://$c$cbucket.co.in/apache-$p$pfork-mpm-configuration/\">http://$c$cbucket.co.in/apache-$p$pfork-mpm-configuration/

and for apache prefork settings you can read following blog http://codebucket.co.in/apache-prefork-mpm-configuration/

这篇关于阿帕奇prefork VS工人MPM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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