Kloxo Close logs and site statistics,Reduce the space occupied,Avoid vps not work
A morning to get a customer reflects a lack of space,He said that the space I use www, In fact, very few of,But 50G space almost full:
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 50G 47G 3.1G 94% /
Official statement:
Every day, if the log file’s size is larger than 50MB, they are moved into the client’s home directory. If you set the remove_processed_logs as true, then instead of moving, they will be deleted. Your main statistics calculation will not be affected at all.
In Kloxo / Lxadmin add a domain name,The default is to open the site statistics. When you add the domain name is recommended to turn off this feature。If you do not shut down and traffic statistics lot,Before long the hard drive will be explode statistics file。If your MySQL does not start,It is likely to be the reason。You can turn off the lower position shown in FIG Statistics
To prevent this from happening,Please make the following settings:
ssh login vps,Delete the existing statistics file
Enter the command:
rm -f /home/admin/__processed_stats/*
If the hard disk has been filled and the database can not be started,lxadmin not open,You can log on to perform the removal operation of the system with SSH,command:
rm -f /home/admin/__processed_stats/*
After the deleting start MySQL,command:
service mysqld start
After avoiding also generates more log,It recommended that each domain name do the following settings:
A customer's process:
Customers reflect kloxo can not enter the background,And all the open site。To check,You can ping,Can ssh。Nor restart kloxo。strange。So a look df,Space is full。Following treatment:
[[email protected] __processed_stats]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 20G 20G 0 100% /
[[email protected] __processed_stats]# pwd
/home/admin/__processed_stats
[[email protected] __processed_stats]# -m -s .
19426 . Logs take up 19G
[root@vps76 __processed_stats]# rm -f /home/admin/__processed_stats/*
Restart kloxo
kloxo service restart