All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
Delphi带进度条的状态栏
扩展GridView控件(八)——导出为Excel_[Asp.Net教程]
C#之委托和事件_[Asp.Net教程]
asp.net定制简单的错误处理页面_[Asp.Net教程]
SQL,Server中读取XML文件的简单做法_[SQL,Server教程]
利用GridView显示主细表并一次编辑明细表所有数据的例子_[Asp.Net教程]
ASP.NET,入门的五个步骤_[Asp.Net教程]
常用的 MS SQL Server 数据修复命令_[SQL Server教程]
在ASP.NET,Atlas中创建自定义Behavior_[Asp.Net教程]
图片、文件防盗链程序_.net资料_编程技术
Reading number is top 10 pictures
海底兵马俑
餐桌上的鱼
到南昌西站了3
The money of more than 100 countries and regions3
中国的十元人民币的秘密
A man's favorite things5
Absolutely shocked. National geographic 50 animal photographys2
女人化妆前后的对比
The little woman's bright wire1
Entered the goddess in the AD1
Download software ranking
linux安装大全
The Bermuda triangle1
asp.netWeb服务器高级编程
Visual C++界面编程技术
matrix1
Unix video tutorial4
Unix video tutorial20
Prostitutes diary
艳兽都市
Tram sex maniac 2 (H) rar bag3
aaa published in(发表于) 2013/12/27 20:03:38 Edit(编辑)
增加Apache最大连接数的方法详细介绍_php资料_编程技术

增加Apache最大连接数的方法详细介绍_php资料_编程技术

增加Apache最大连接数的方法详细介绍_php资料_编程技术-你的首页-uuhomepage.com

在httpd.conf中设置:


MaxClients n


1、apache1.x


n是整数,表示最大连接数,取值范围在1和256之间,如果要让apache支持更多的连接数,那么需要修改源码中的httpd.h文件,编辑/httpd-2.0.59/include/httpd.h中的HARD_SERVER_LIMIT值改大然后再编译。

增加apache最大连接数的方法:

在httpd.conf中设置:

MaxClients n

n是整数,表示最大连接数,取值范围在1和256之间,如果要让apache支持更多的连接数,那么需要修改源码中的httpd.h文件,把定义的HARD_SERVER_LIMIT值改大然后再编译

2、apache2.x

系统默认150个连接数,下面的例子修改为1500个。


修改httpd.conf文件

找到



StartServers 8
MinSpareServers 5
MaxSpareServers 20
MaxClients 150
MaxRequestsPerChild 1000

修改
MaxClients 150

ServerLimit 1500
MaxClients 1500

然后保存退出。

重新启动http服务(/etc/rc.d/init.d/httpd restart)





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.