The file named errorlog is too large

*/-->

The file named errorlog is too large

1 Problem

One day, when I install android-sdk, I found that one error "NO space left on the device". That's very strange. Because I have allocated 50G to mnt. So I check my computer's files. Then I found the file,*errorlog.1*, which size is 35G. Then search. The errorlog.1 is the error log file of apache. All apache errors/diagnostic information or other errors found during serving requests are logged to this file. So if you don't do something, it will be larger and larger.

2 Solution

edit /etc/httpd/conf/httpd.conf

#ErrorLog "/var/log/httpd/error_log"   #before
ErrorLog "|bin/rotatelogs /var/logs/errorlog.%Y-%m-%d-%H_%M_%S 5M" #CustomLog "/var/log/httpd/access_log" common #before
CustomLog "|bin/rotatelogs /var/log/httpd/access_log 86400" common
CustomLog "|bin/rotatelogs /var/log/httpd/access_log 5M" common

Author: mlhy

Created: 2015-10-11 日 13:41

Emacs 24.5.1 (Org mode 8.2.10)

最新文章

  1. 网页提交中文到WEB容器的经历了些什么过程....
  2. nginx反向代理下thinkphp、php获取不到正确的外网ip
  3. PHP CURL CURLOPT参数说明(curl_setopt)
  4. 知方可补不足~Sqlserver中的几把锁和.net中的事务级别
  5. hdu4975 A simple Gaussian elimination problem.(正确解法 最大流+删边判环)(Updated 2014-10-16)
  6. 使用ajax跨域withCredentials的作用
  7. The Suspects 简单的并查集
  8. Implicitly Typed Local Variables
  9. FANTASY:In which way do you think the world will end?
  10. Hadoop 它们的定义Writable NullpointerException
  11. Android Studio2.1 Run APP:Error: Execution failed for task
  12. LeetCode之“链表”:Rotate List
  13. JS数组(JSON)整合篇-方法整理
  14. 常用SMTP地址
  15. Mssql合并查询结果
  16. PHP函数之trigger_error
  17. RavenDb学习(五)结果转换
  18. End-to-End Speech Recognition in English and Mandarin
  19. Bowen
  20. windows 键盘全局钩子

热门文章

  1. 查找ARP攻击源
  2. sqlmap简单流程使用
  3. 洛谷 P1032 字串变换(map)
  4. 36. docker swarm docker secret 的使用和管理
  5. CMake命令之export
  6. 撤销上一次的commit
  7. Gym102361E Escape
  8. 第3章 ZooKeeper基本数据模型
  9. AtCoder - 4371 Align(分类讨论)
  10. 新手学习Web前端的三个高效学习方法,基础要重视