- 论坛徽章:
- 0
|
很简单的一个web服务器,ubuntu 10.04, apache, php, mysql
硬盘有150G,这几天发现空间不足了,清理了apache的日志文件还不行,现在只剩12G了,请大家帮帮忙。
> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 143G 125G 12G 92% /
none 1001M 176K 1001M 1% /dev
none 1005M 0 1005M 0% /dev/shm
none 1005M 48K 1005M 1% /var/run
none 1005M 0 1005M 0% /var/lock
none 1005M 0 1005M 0% /lib/init/rw
从这里看还有12G空间
> du -h --max-depth=1
4.0K ./selinux
11G ./var
4.0K ./opt
19M ./boot
4.0K ./mnt
8.0K ./media
133M ./lib
16K ./lost+found
0 ./sys
176K ./dev
546M ./usr
4.0K ./srv
26M ./etc
2.0M ./tmp
6.1M ./bin
148K ./root
100K ./home
6.0M ./sbin
4.0K ./cdrom
从这里看最大的目录/var也就是11G
> find -type f -size +100000k
./var/lib/mysql/jiantoo/bohe_addonarticle.MYD
./var/www/www.***.cn/vidio/ajs.flv
./var/www/www.***.cn/vidio/nd.flv
./var/www/www.***.cn/vidio/zxrj.flv
./var/www/www.***.cn/zxrj1.flv
./sys/devices/pci0000:00/0000:00:1e.0/0000:04:04.0/resource0
./sys/devices/pci0000:00/0000:00:1e.0/0000:04:04.0/resource0_wc
./proc/kcore
find: `./proc/14482/task/14482/fd/5': No such file or directory
find: `./proc/14482/task/14482/fdinfo/5': No such file or directory
find: `./proc/14482/fd/5': No such file or directory
find: `./proc/14482/fdinfo/5': No such file or directory
查找了>100M的文件,也就是网站上的几个视频,
大家有没有好的想法啊? |
|