这个问题困扰了很久,搜索了所有帖子,解决方法都是用mod_vhost_limit.c或者tsunami.c 解决,但是这两个modules只能在apache1.3x下正常使用,apache2.0下更本没法动态安装。不知道哪位高手可以解答一下? :shock:
afreeman 回复于:2003-09-23 00:24:57
没一个人知道吗?
周若望牧师 回复于:2003-09-23 13:42:58
maxkeepaliverequests X
X=要限制的连接数
hbcom 回复于:2003-09-25 07:45:00
MaxKeepAliveRequests 1000
我也是这样的,但不知道,行不行哟
还有,不是可以控制网络带宽吗,,,又如何控制???
aclacl 回复于:2003-09-27 13:41:04
[quote:a8530d5485="afreeman"]这个问题困扰了很久,搜索了所有帖子,解决方法都是用mod_vhost_limit.c或者tsunami.c 解决,但是这两个modules只能在apache1.3x下正常使用,apache2.0下更本没法动态安装。不知道哪位高手可以解答一下? :shock:[/quote:a8530d5485]
你说得对,Apache2.0不同于1.3, 它只需要修改httpd.conf文件即可, 不过缺省安装的Apache要在prefork MPM 中修改才有效。for example:
# prefork MPM
<IfModule prefork.c>
ServerLimit 2000
StartServers 15
MinSpareServers 15
MaxSpareServers 20
MaxClients 850
MaxRequestsPerChild 10000
</IfModule>
zjzf_1 回复于:2003-09-30 22:52:10
http://www.topology.org/src/bwshare/README.html[b:c7bc257066][/b:c7bc257066]
afreeman 回复于:2003-12-21 19:48:55
[quote:9c26123ad3="aclacl"]
你说得对,Apache2.0不同于1.3, 它只需要修改httpd.conf文件即可, 不过缺省安装的Apache要在prefork MPM 中修改才有效。for example:
# prefork MPM
<IfModule prefork.c>
ServerLimit ..........[/quote:9c26123ad3]
您的意思是说apache2.0下不需要安装其他module,直接就可以在<IfModule prefork.c>里面限制吗? 能否详细解释一下 <IfModule prefork.c>里面哪句话是限制虚拟主机的并发连接数的 ,是 ServerLimit = 2000吗?
xiangcatcat 回复于:2004-05-21 15:02:33
Vhost Limit Module Version 0.1
for Apache 2.x License: Open Source Code. Just keep my credits.
Last Updated February 24th, 2004 Author Ivan Barrera (Bruce)
Allow to specify the max clients, per virtual host
http://modules.apache.org/search
收索 mod_vhost_limit
Vhost Limit Module Version 0.1
for Apache 2.x License: Open Source Code. Just keep my credits.
Last Updated February 24th, 2004 Author Ivan Barrera (Bruce)
Allow to specify the max clients, per virtual host
Requires
Module homepage at Http://apache.Ivn.cl
可以限制我用过了,
注意:
compile.sh
需要改 -I 的include目录,根据apache2的安装目录改