linux - apache挂掉求助?
阿神
阿神 2017-04-17 11:46:45
0
3
328

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配置呢合理么?求教、

阿神
阿神

闭关修行中......

全部回覆(3)
刘奇

應該是500的uid 被系統的其他使用者佔用了吧,你刪除此使用者即可

阿神

你截取的日誌中的表現看是apache 申請臨時資源時的權限不能切換到uid是500的用戶上,導致資源申請失敗,這些日誌還不能確定是否是導致apache掛掉的真正原因,可能還要多看一些日誌

刘奇

轉一篇日誌http://weifly.iteye.com/blog/1259907,不知道有沒有幫助

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板