# Apache调优

#### 目的

通过调优Apache的配置文件，可以有效地提高服务器的性能。


#### 方法

1. 修改配置文件httpd-mpm.conf关于mpm_worker_module的配置参数。
  配置文件路径：“/usr/local/apache2/conf/extra/httpd-mpm.conf”。 1 2 3 4 5 6 7 8 9 10 11 <IfModule mpm_worker_module> ServerLimit 84 ThreadLimit 128 StartServers 8 MaxClients 4000 MinSpareThreads 75 MaxSpareThreads 250 ThreadsPerChild 128 MaxRequestWorkers 5120 MaxConnectionsPerChild 10000 </IfModule>

2. Apache的调优参考《Apache 调优指南(https://www.hikunpeng.com/document/detail/zh/kunpengwebs/ecosystemEnable/Apache/kunpengapache_05_0002.html)》。
