Squid is compressed once in the default of 5 days, and is set in /etc/logrotate.d/squid. If you change the location of the log,
Please modify /etc/logrotate.d/squid
/home/log/squid/access.log {weeklyrotate 5copytruncatecompressnotifemptymissingok}/home/log/squid /cache.log {weeklyrotate 5copytruncatecompressnotifemptymissingok}
/home/log/squid/store.log {weeklyrotate 5copytruncatecompressnotifemptymissingok# This script asks squid to rotate its logs on its own.# Restarting squid is a long process and it is Not worth# doing it just to rotate logspostrotate/usr/sbin/squid -k rotateendscript}
First modify squid.conf
logfile_rotate 3 (retain several logs)
Modify /etc/crontab
0 0 * * * squid /home/squid/sbin/squid -k rotate
(compressed once a day)
crontab /etc/crontab (crontab effective)
xenserver XenCenter can bind the network card, support Active-Active and Active-Standby mode, but on
2011 is the 20th anniversary of Linux and the 18th anniversary of the Debian release. Linux has expe
Whether you are a Linux command line newbie or a veteran, these tips can help you improve, save time
The linux shell has its own set of flow control statements, including conditional statements (if),
Simple steps to configure NFS under Linux
Method for detecting whether a USB disk is connected under Linux system
The best solution for hard disk partitioning under Linux
Tip: Generate crypt encrypted passwords under Linux
Linux ssh related configuration
Umount: /home: device is busy solution
Device model bus, driver, device basic tutorial
Linux execlp function Using basic tutorials
IIS Load Rewrite.dll Unsuccessful Red Arrow Down Solution
Send mail configuration method of php mail function under iis
The implementation of network load balancing is not as simple as you think.
The reason why "Epson Scan cannot start" when XP scans
Steps to remove the small arrow of the windows7 desktop icon
Win10 DVD Player Frequently Asked Questions and Solutions
How to find the location of win8 system favorites faster
Fast compression how to convert 7z format Fast compression into 7z format tutorial