在根目录下使用如下命令
du -sh * | sort -n
得到结果
du: cannot access ‘proc/28012’: No such file or directory
du: cannot access ‘proc/28071/task/28071/fd/4’: No such file or directory
du: cannot access ‘proc/28071/task/28071/fdinfo/4’: No such file or directory
du: cannot access ‘proc/28071/fd/4’: No such file or directory
du: cannot access ‘proc/28071/fdinfo/4’: No such file or directory
0 bin
0 lib
0 lib64
0 proc
0 sbin
0 sys
2.7G var
4.0K media
4.0K mnt
4.0K srv
5.1G usr
8.0K patch
15G www
16K dev
16K lost+found
39M etc
56K tmp
72K home
129M boot
172M opt
627M root
684K run
966M logs
看到 www 目录占用了15G,进入www目录继续运行 上面的命令
1.5G wwwroot
2.5G wwwlogs
4.0K disk.pl
10G server
517M backup
进入 server目录继续运行
1.2M rar
1.6G nginx
1.9G mysql
4.0K bt_tomcat_web
4.0K lib.pl
4.0K pyporject_evn
5.6G data
8.0K other_project
9.6M cron
12K python_project
16K go_project
16K nodejs
24K stop
145M redis
363M panel
487M php
864K free_waf
如此可以找到具体是哪个文件夹下的文件占用了磁盘空间,选择性清理即可
标签:怎么办,4.0,access,cannot,服务器,磁盘,du,proc,28071 From: https://www.cnblogs.com/lybaobei/p/17902646.html