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