Apache問題處理

來源:互聯網
上載者:User

標籤:連結   apach   百度   name   參數   http   art   ror   min   

1. 查看apache的錯誤記錄檔

我的apache記錄檔目錄 /var/log/httpd/error.log

[Sun Nov 20 21:17:24 2016] [error] server reached MaxClients setting, consider raising the MaxClients setting 出現問題

2. 百度上面的問題 是因為原來是到了apache的最大串連數了。

檢查了一下,這是由於並發連結數太多導致的,後來查了一下apache的文檔,發現可以通過修改apache的配置文

/etc/httpd/conf/httpd.conf中的MaxClients參數來調整。

然後在httpd.conf裡面配置

<IfModule prefork.c>  

  StartServers     100  

  MinSpareServers  100  

  MaxSpareServers  100  

  ServerLimit     1024  

  MaxClients      1024  

  MaxRequestsPerChild  4000  

</IfModule>  

3. 從這個問題學到了很多關於apache的問題,工作模式,但是我的線上伺服器切換老是報錯就不敢切換了,

Apache問題處理

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.