我正在使用Ubuntu Ubuntu。最近,它经常关闭,然后在重新启动后重新打开。我一直在分析apache2错误日志以查找原因。以前它正在报告PHP代码错误。但是修复它之后,现在会引发不同的错误。
基于这些错误,我可以得出什么结论?可能是造成停机的原因以及如何解决?
AH: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
AH00484: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
AH00687: Negotiation: discovered file(s) matching request: /opt/bitnami/apps/file_that_doesn't-exist
(70007)The timeout specified has expired: [client 148.251.79.134:60170] AH01075: Error dispatching request to : (polling)
AH00045: child process 5062 still did not exit, sending a SIGTERM
AH00046: child process 5299 still did not exit, sending a SIGKILL
AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
我已经做了足够的Google搜索,以了解每个错误。最重要的是,我想知道这些错误中的哪一个会导致服务器宕机?修复它的方法是什么?
这里是Bitnami工程师,
AH: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
AH00484: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
似乎服务器已达到极限,这可能是您遇到问题的原因。它可能达到极限,这是因为实例非常小,您需要增加其内存/ CPU,或者因为您受到了攻击。
cd /opt/bitnami/apache2/logs/
tail -n 10000 access_log | awk '{print $1}'| sort| uniq -c| sort -nr| head -n 10
那些IP熟悉吗?是否有太多IP要求您的站点多次?
您可以找到有关如何阻止它的更多信息here
/opt/bitnami/apache2/conf/bitnami/httpd.conf
文件来增加Apache中的MaxRequestWorkers参数,或者您也可以使用AWS控制台来增加实例类型,以便服务器从现在开始拥有更多资源。