Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to delete apache log files

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to delete the apache log file, the article is very detailed, has a certain reference value, interested friends must read it!

Delete apache_access.log and error.log files under windows

1. Delete the apache_access.log and access.log files in the C:\ wamp\ logs directory

2. Open the httpd.conf configuration file of Apache and find the following two configurations

ErrorLog "c:/wamp/logs/apache_error.log" CustomLog "c:/wamp/logs/access.log" common

Modify to

# ErrorLog "c:/wamp/logs/apache_error.log" # limit the error log file to 1MErrorLog "| bin/rotatelogs.exe-l c:/wamp/logs/apache_error-%Y-%m-%d.log 1m" # generate an error log file ErrorLog "every day" | bin/rotatelogs.exe-l c:/wamp/logs/apache_error-%Y-%m-%d.log 86400 "# CustomLog" c:/wamp/logs/access.log "commonCustomLog" | bin / rotatelogs.exe-l c:/wamp/logs/access-%Y-%m-%d.log 1m "commonCustomLog" | bin/rotatelogs.exe-l c:/wamp/logs/access-%Y-%m-%d.log 86400 "common

The above is how to delete all the contents of the apache log file, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report