Kloxo关闭日志和网站统计

Filesystem Size Used Avail Use% Mounted on
/dev/simfs 50G 47G 3.1G 94% /

官方说法:

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.

在Kloxo/Lxadmin里添加了一个域名,默认的是打开了网站统计.建议在添加域名时就关闭这个功能。如果没有关闭统计并且流量很大,用不了多久硬盘就会被统计文件撑爆。如果你的MySQL不能正常启动,很有可能是这个原因。可以在下图所示位置关掉统计

为避免这样的情况发生,请作以下设置:

ssh登录vps,删除已有的统计文件
输入命令:
rm -f /home/admin/__processed_stats/*

如果硬盘已经占满并且数据库不能启动,lxadmin不能打开,可以用SSH登录到系统执行删除操作,命令:
rm -f /home/admin/__processed_stats/*
删除之后启动MySQL,命令:
service mysqld start

避免以后还生成较多日志,建议每个域名都做以下设置:

kloxo_del_logo.png

一个客户的处理过程:

客户反映kloxo无法进入后台,而且网站全部打不开。以查询,能ping,能ssh。重启了kloxo也不行。奇怪。于是 df一看,空间满了。如下处理方式:

[root@www.ctohome.com __processed_stats]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/simfs             20G   20G     0 100% /
[root@www.ctohome.com __processed_stats]# pwd
/home/admin/__processed_stats
[root@www.ctohome.com __processed_stats]# du -m -s .
19426   . 日志占用了19G
[root@vps76 __processed_stats]# rm -f /home/admin/__processed_stats/*

重新启动kloxo

service kloxo restart

36 thoughts on “Kloxo关闭日志和网站统计

  1. Pingback: Best Hansgrohe Rain Shower Head

  2. Pingback: 바카라사이트

  3. Pingback: CBD oil effects

  4. Pingback: aricraft decals

  5. Pingback: qiuqiu99

  6. Pingback: บาคาร่า

  7. Pingback: Eddie Frenay

  8. Pingback: ti le cuoc bong da

  9. Pingback: cbdadverts.com

  10. Pingback: thethao tructuyen

  11. Pingback: Homepage

  12. Pingback: google adwords agency

  13. Pingback: CBD

  14. Pingback: 메이저놀이터

  15. Pingback: 카지노사이트

  16. Pingback: Eliza

  17. Pingback: https://ofertowy.pl/

  18. Pingback: جلب الحبيب

  19. Pingback: togel online

  20. Pingback: Replica rolex submariner 5508

  21. Pingback: https://dlugi-faktury.pl/

  22. Pingback: 메이저 토토사이트

  23. Pingback: situs judi

  24. Pingback: 바카라 사이트 제작

  25. Pingback: 안전바카라

  26. Pingback: how to become a christian

  27. Pingback: 918kiss malaysia and singapore

  28. Pingback: squeeqee.co.uk/carpet-cleaning-rickmansworth

  29. Pingback: dragon pharma steroids online

  30. Pingback: 바카라 게임 사이트

  31. Pingback: Movies online

  32. Pingback: Buy Vyvanse Online

  33. Pingback: 마사지사이트

  34. Pingback: fake rolex with fakr papers

  35. Pingback: شات صوتي

  36. Pingback: Santa-Clara-Electric.info

Comments are closed.