vim /usr/local/apache/etc/httpd.conf 修改连接数最多300

Apache 之謎樣 ServerLimit 指令 (directive)

<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          300
    MaxRequestsPerChild   0
    ServerLimit         500    # 新設定
</IfModule>
原文地址:https://www.cnblogs.com/phpnow/p/2945199.html