免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1396 | 回复: 3
打印 上一主题 下一主题

[Web] 如何设置apache 最大连接数 急!在线等! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-09 17:24 |只看该作者 |倒序浏览
已经试了N种办法了,可是连接数到了257就不在增加了,好奇怪呀!

<IfModule prefork.c>
StartServers         10
MinSpareServers      10
MaxSpareServers      15
ServerLimit          20000
MaxClients           500
MaxRequestsPerChild  10000
</IfModule>

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
2 [报告]
发表于 2007-01-09 17:27 |只看该作者
用回默认的会如何?
apachectl -l显示什么?

论坛徽章:
0
3 [报告]
发表于 2007-01-09 17:50 |只看该作者
Compiled in modules:
  core.c
  mod_authn_file.c
  mod_authn_default.c
  mod_authz_host.c
  mod_authz_groupfile.c
  mod_authz_user.c
  mod_authz_default.c
  mod_auth_basic.c
  mod_include.c
  mod_filter.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c

论坛徽章:
0
4 [报告]
发表于 2007-01-09 17:53 |只看该作者
我看了一篇帖子
如果要让apache支持更多的连接数,那么需要修改源码中的httpd.h文件,把定义的HARD_SERVER_LIMIT值改大然后再编译
可是我找到了httpd.h 里面就没有HARD_SERVER_LIMIT
我还问了朋友说APACHE2不用从新编译!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP