博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
HTTPD配置文件MPM(非7.0以上版本)
阅读量:7183 次
发布时间:2019-06-29

本文共 1013 字,大约阅读时间需要 3 分钟。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
MPM:多处理模块
prefork:预先生成进程,一个请求用一个进程响应
 
worker:启动多个进程,每个进程生成多个线程,一个请求用一个线程响应(线程是进程的子单位)
 
event: 一个进程同时处理多个请求(不生成线程)
 
 
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value 
for 
MaxClients 
for 
the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       
8           
#启动的进程的数量
MinSpareServers    
5
#最小空闲进程数量
MaxSpareServers   
20
#最大空闲进程数量
ServerLimit      
256
#为MaxClient指定的上限值,不能超过它
MaxClients       
256
#最大客户端数,最多允许的连接数量
MaxRequestsPerChild  
4000
#一个进程最多响应的次数
</IfModule>

KeepAlive Off   #是否开启长连接

MaxKeepAliveRequests 100   #长连接的最大请求资源数量

KeepAliveTimeout 15      #超时时间

本文转自 chomperwu 51CTO博客,原文链接:http://blog.51cto.com/chomper/1698298,如需转载请自行联系原作者
你可能感兴趣的文章
LeetCode - Trapping Rain Water
查看>>
Codeforces 437C The Child and Toy(贪心)
查看>>
蓝桥杯 大臣的旅费
查看>>
hql中不能写count(1)能够写count(a.id)
查看>>
Atitit。Time base gc 垃圾 资源 收集的原理与设计
查看>>
还是态度问题
查看>>
判断记录是否存在的通用方法
查看>>
sift算法c语言实现
查看>>
报表中的Excel操作之Aspose.Cells(Excel模板)
查看>>
(二)STM32中中断优先级理解
查看>>
gulp教程之gulp-imagemin
查看>>
C#中字典集合HashTable、Dictionary、ConcurrentDictionary三者区别
查看>>
【C语言入门教程】3.3 条件控制语句
查看>>
CLGeocoder Error Domain=kCLErrorDomain Code=2
查看>>
Spring中的@scope注解
查看>>
M2M
查看>>
Spring MVC的web.xml配置详解(转)
查看>>
iptables禁止外网访问redis server服务默认端口6379的命令
查看>>
硅谷新闻9--图片三级缓存
查看>>
洛谷P1220关路灯[区间DP 提前计算代价]
查看>>