發新話題

cPanel and WHM change max clients at pre_virtualhost_global.conf

cPanel and WHM change max clients at pre_virtualhost_global.conf

For Apache 2:
Modify /usr/local/apache/conf/includes/pre_virtualhost_global.conf
and add these lines

<IfModule prefork.c>
ServerLimit  10000
StartServers 16
MinSpareServers 16
MaxSpareServers 64
MaxClients 10000
MaxRequestsPerChild 0
</IfModule>

and then restart Apache.
ofcourse you can modify it to whatever you want.
For Apache 1.3 just modify httpd.conf's MaxClients setting.
引用:
Originally Posted by ScrltOTara
I have updated my max clients in httpd.conf to 256, however, it keeps getting reset to 150. Can someone tell me the best way to change it so it "sticks"? I ran the distiller, but it still gets overwritten. Thanks.

TOP

發新話題

本站所有圖文均屬網友發表,僅代表作者的觀點與本站無關,如有侵權請通知版主會盡快刪除。