Apache服务器指令大全(3)
时间:2025-07-12
时间:2025-07-12
Apache服务器指令大全
1、进程控制
1.1、MaxClients
默认值:MaxClients 150
设定能同时服务的请求数目;
1.2、MaxRequestsPerChild
默认值:MaxRequestsPerChild 0
设置每个进程能够响应的最大请求数,0表示不限制;
1.3、MaxSpareServers
默认值:MaxSpareServers 10
设定最大空闲服务进程数目;MinSpareServers设定最小空闲服务进程数目;
1.4、ServerType
默认值:ServerType standalone
设定系统执行服务器的方式;
1.5、StartServer
默认值:StartServer 5
服务器启动时建立的子进程的数目;
1.6、ThreadsPerChild
默认值:ThreadsPerChild 50
设定Apache服务器使用的线程数;
1.7、Timeout
默认值:Timeout 300
设定处理一个请求的超时值;
2、建立持续连接
2.1、KeepAlive
默认值:KeepAlive ON