The file named Error_log is too large

Source: Internet
Author: User

<title>The file named Errorlog is too large</title> The file named Errorlog is too large1Problem

One day, when I install ANDROID-SDK, I found so one error "NO space left on the device". That ' s very strange. Because I has 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 is logged to the this file. So if you don something, it'll be larger and larger.

2Solution

Edit/etc/httpd/conf/httpd.conf

#ErrorLog "/var/log/httpd/error_log"   #beforeErrorLog "|bin/rotatelogs/var/logs/errorlog.%y-%m-%d-%h_%m_%s 5M" #CustomLog "/var/log/httpd/access_log" common  #beforeCustomLog "|bin/rotatelogs/var/log/httpd/access_log 86400 "Commoncustomlog" |bin/rotatelogs/var/log/httpd/access_log 5M "common

Author:mlhy

Created:2015-10-11 Day 13:41

Emacs 24.5.1 (ORG mode 8.2.10)

The file named Error_log is too large

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.