由於公司apache的工做模式爲event 因此這裏值描述event下的優化,配置以下html
一、在/usr/local/apache2.4.29/conf目錄下httpd.conf文件添加一下配置項apache
<IfModule mpm_event_module>服務器
ServerLimit 100
StartServers 20
MinSpareThreads 25
MaxSpareThreads 1200
ThreadsPerChild 50
MaxConnectionsPerChild 10000
</IfModule>
Timeout 600000
Keepalive On優化