當(dāng)遇到ubuntu磁盤(pán)使用100%...

發(fā)現(xiàn)ubuntu執(zhí)行命令出錯(cuò):

No space left on device

執(zhí)行:df -h發(fā)現(xiàn):

Filesystem      Size  Used Avail Use% Mounted on
udev            2.0G  4.0K  2.0G   1% /dev
tmpfs           396M  392K  395M   1% /run
/dev/vda1        40G   40G     0 100% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none            5.0M     0  5.0M   0% /run/lock
none            2.0G     0  2.0G   0% /run/shm
none            100M     0  100M   0% /run/user
overflow        1.0M   32K  992K   4% /tmp

?。?!磁盤(pán)滿了!

我再查du -sh /* --exclude proc

9.6M    /bin
93M /boot
4.0K    /dev
5.8M    /etc
56M /home
0   /initrd.img
0   /initrd.img.old
710M    /lib
8.0K    /lib64
16K /lost+found
4.0K    /media
4.0K    /mnt
65M /opt
84M /root
392K    /run
8.5M    /sbin
4.0K    /srv
0   /sys
32K /tmp
1.6G    /usr
37G /var
0   /vmlinuz
0   /vmlinuz.old

/var下面37G深深刺激著我。

我再查:du -hs /var/*

1.5M    /var/backups
357M    /var/cache
535M    /var/lib
4.0K    /var/local
0   /var/lock
1.7G    /var/log
4.0K    /var/mail
4.0K    /var/opt
0   /var/run
24K /var/spool
4.0K    /var/tmp
35G /var/www

再查:du -hs /var/www/*
再查!
查!
!

我刪!
刪!

!

overflow        1.0M  1.0M     0 100% /tmp

我... /tmp滿了~
重啟~

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容