ubuntu /var/cache 中文件数量过大,导致 inodes %100

2019-08-17 18:50:03 +08:00
 wuwukai007
可以直接删除吗?
2015 次点击
所在节点    程序员
3 条回复
wuwukai007
2019-08-17 18:53:26 +08:00
df -i
/dev/vda1 3276800 3276798 2 100% /
然后 for i in /var/*; do echo $i; find $i | wc -l; done
/var/cache
2717221
cd /var/cache;ls
apparmor apt cups dictionaries-common fwupdate ldconfig man realmd
app-info cracklib debconf fontconfig gdm lightdm pm-utils snapd
wuwukai007
2019-08-17 19:38:23 +08:00
这个 /var/cache/fontconfig 文件夹有 270 万个文件
rm 删了半个小时,最后服务器正常了。,。。。
zbinlin
2019-08-17 19:46:55 +08:00
可以用 fc-cache 来清

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/592743

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX