apache配置文件错误"lowering MaxClients to 256. To increase, please see the ServerLimit"
作者:网络医生 发布于:2012-4-14 9:51 Saturday 分类:Web服务器配置
在检测apache配置文件的语法时,出现以下错误:
[root@redhat5 conf]# ../bin/apachectl -t
WARNING: MaxClients of 1000 exceeds ServerLimit value of 256 servers,
lowering MaxClients to 256. To increase, please see the ServerLimit
directive.
Syntax OK
编辑httpd-mpm.conf 文件,加入ServerLimit指令即可。
<IfModule mpm_prefork_module>
StartServers 10
MinSpareServers 5
MaxSpareServers 25
ServerLimit 1500
MaxClients 1000
MaxRequestsPerChild 128
</IfModule>
关于apache使用prefork还是worker工作模式可以在编译apache时指定,默认是prefork工作模式,可以使用/home/apache/bin/apachectl -l 命令查看,要想配置生效必须./apachectl stop 然后./apachectl start ,不能使用./apachectl restart 这样是不生效的。
联系方式
-
mail: mail@num123.com
QQ: 76908265
日志分类
随机日志
- Windows防火墙设置不当导致FTP无法访问
- 如何在Linux系统下访问Windows的共享文件
- 远程破解Windows2003系统密码
- 如何重新安装TCP/IP协议
- Linux路由应用-使用策略路由实现访问控制(转)
- Linux系统实现ftp自动登录上传或下载数据
- 在中兴ZXR10系列交换机上配置NTP进行网络校时
- 用crontab来实现MySQL数据库的自动备份
- Linux出现“TSC appears to be running slowly.Marking it as unstable”的解决方法
- 监控Linux系统的非法用户登陆增强版
- 如何破解SOHU电子邮箱密码
- 彻底解决ARP病毒对局域网的影响
日历
标签云
最新碎语
- 博客多年没更新了,但一直都在运行。天朝的管制太严格了,今天迁移到香港的服务器上。
2018-07-25 13:51
- 决心一下,行动要快。
2013-09-09 09:02
- 为灾区人民祈福!
2013-04-22 12:45
- 都是停电惹的祸
2013-03-17 20:06
- 假期结束,开始上班。
2012-08-13 07:17
- 堵到机场高速上了
2012-07-13 18:14
- 人生的计划永远赶不上变化。
2012-07-10 18:45
- 接受你所接受的,珍惜你所拥有的。
2012-05-11 14:13



发表评论: