CentOS server, large traffic will cause log files to grow rapidly, about six months to clear

Source: Internet
Author: User
Tags centos server

This morning opened QQ, a large group of customers said my site can not login, Google a bit, the original server can not store the session.
Later asked the server Hoster, was told that my VPS has been running for too long and traffic is very large, so the access log is full.


Server hoster:
Dear User, Hello!
/www/wdlinux/httpd-2.2.24/logs/log file has 14.5G, please SSH login delete logs under the Access_log





So I use the Putty Remote tool SSH login to the server, after logging in, enter the following command:

Cat/dev/null >/www/wdlinux/httpd-2.2.24/logs/access_log
Cat/dev/null >/www/wdlinux/httpd-2.2.24/logs/error_log


Enter, fault resolution! Found the site a lot faster, special note in this.

CentOS server, large traffic will cause log files to grow rapidly, about six months to clear

Related Article

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.