apache挂掉求助?

centos 6.3 64bit
cpu 双核
7.5G内存
php 5.3
apache 2

StartServers 20
MinSpareServers 20
MaxSpareServers 60
ServerLimit 10000
MaxClients 5000
MaxRequestsPerChild 1000

谷歌分析显示平时同时在线500到1200、晚上人最多。

日志:
[Wed Jun 25 20:40:35 2014] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 500
[Wed Jun 25 20:40:35 2014] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 500
[Wed Jun 25 20:40:35 2014] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 500
[Wed Jun 25 20:40:35 2014] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 500
[Wed Jun 25 20:40:35 2014] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 500
[Wed Jun 25 20:40:35 2014] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 500
[Wed Jun 25 20:40:35 2014] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 500
[Wed Jun 25 20:40:35 2014] [alert] Child 25763 returned a Fatal error... Apache is exiting!
[Wed Jun 25 20:40:35 2014] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 500
[Wed Jun 25 20:40:35 2014] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 500

这可能是啥问题、、、apache配置呢合理么?求教、

阅读 4.8k
3 个回答
新手上路,请多包涵

应该是500的uid 被系统的其他用户占用了吧,你删除此用户即可

你截取的日志中的表现看是 apache 申请临时资源时的权限不能切换到uid是500的用户上,导致资源申请失败,这些日志还不能确定是否是导致apache挂掉的真正原因,可能还要多看一些日志

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题