centos日志删除
这两天发现磁盘满了
du -sh * 看了一下占用空间大的目录
[root@VM-4-10-centos /]# cd usr [root@VM-4-10-centos usr]# du -sh * 207M bin 4.0K etc 4.0K games 46M include 613M java 1.5G lib 505M lib64 106M libexec 33G local 55M sbin 599M share 254M src 0 tmp [root@VM-4-10-centos usr]# cd local [root@VM-4-10-centos local]# du -sh * 11M bin 16M brook-pf 1.0M cache.db 4.2M curl 40K data.db 4.0K etc 4.0K games 6.8M hm 4.0K hm.yml 156K include 178M lib 450M lib64 4.0K libexec 5.1M libiconv 36K man 8.0K nginx 15M openssl 1.2G qcloud 4.0K result.csv 4.0K sbin 828K share 4.0K src 31G usranalyse 0 yd.socket.server 1.4M zend [root@VM-4-10-centos local]# cd usranalyse/ [root@VM-4-10-centos usranalyse]# ls etc lib logs sbin [root@VM-4-10-centos usranalyse]# du -sh * 16K etc 848K lib 31G logs 12K sbin
发现这个日志目录占用了大量空间
/usr/local/usranalyse/logs
80G的硬盘快占掉一半了
删掉就好了