以下是我试图破译性能不佳的Apache当前安装的一部分。 我注意到下面,都没有注释:
<IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 200 MaxRequestsPerChild 0 </IfModule> <IfModule mpm_worker_module> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule>
当prefork和worker都被定义时,会发生什么? 我们使用PHP,所以我假设prefork将是我们想要的。
当prefork和worker都被定义时,会发生什么? 我们使用PHP,所以我假设prefork将是我们想要的。
究竟。 您可以确认:
# apachectl -l
要么
# httpd -V