一区二区三区高清不卡视频-99|亚洲 日韩 欧美 一区 成人|一本久久道亚洲综合|国产高清无码入口|午夜亚洲视频国产|国产亚洲午夜嘿嘿视频|97人妻一区二区三区免费九一视频|久久精品一区99|久久久精品久久久欧美俄罗乱妇|玖玖中文字幕AV

歡迎訪問士人網(wǎng)絡天水網(wǎng)站建設專業(yè)服務平臺 網(wǎng)站地圖 | 聯(lián)系我們
天水網(wǎng)站建設制作設計公司【天水士人網(wǎng)絡】

centos系統(tǒng)wdcp面板中Apache錯誤日志文件占磁盤問題解決方案

時間:2020-04-07 | 來源:士人網(wǎng)絡 | 關注: 533

centos系統(tǒng)wdcp面板中Apache錯誤日志文件占磁盤問題解決方案

  最近天水網(wǎng)絡公司筆者在維護centos系統(tǒng)時發(fā)現(xiàn),wdcp面板下的Apache錯誤日志文件占滿了磁盤,導致網(wǎng)站無法登錄后臺。今天天水市網(wǎng)絡公司筆者教給大家這個問題的解決方案,希望能幫你解決問題。

  為了減少不必要的寫操作開銷,提高系統(tǒng)性能,需要要設置一下錯誤日志級別,找到httpd.conf配置文件下,比如修改文件/www/wdlinux/apache/conf/httpd.conf

  LogLevel: Control the number of messages logged to the error_log.

  Possible values include: debug, info, notice, warn, error, crit,alert, emerg.

  LogLevel warn

  其中LogLevel用于調(diào)整記于錯誤日志中的信息的詳細程度。可以選擇下列級別,依照重要性降序排列:

  Level Description Example

  emerg 緊急 - 系統(tǒng)無法使用。 “Child cannot open lock file. Exiting”

  alert 必須立即采取措施。 “getpwuid: couldn’t determine user name from uid”

  crit 致命情況。 “socket: Failed to get a socket, exiting child”

  error 錯誤情況。 “Premature end of script headers”

  warn 警告情況。 “child process 1234 did not exit, sending another SIGHUP”

  notice 一般重要情況。 “httpd: caught SIGBUS, attempting to dump core in …”

  info 普通信息。 “Server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers)…”

  debug 出錯級別信息 “Opening config file …”

  默認級別是warn。建議使用 crit 級別的設置,這樣只記錄致命級別以上的日志,可減少垃圾日志。 把LogLevel warn更改為LogLevel crit 然后重啟apache即可。

相關熱詞搜索: centos,wdcp,Apache,錯誤日志,磁盤,解決方