df -ah
显示/根目录占用百分之九十
进入根目录对指定的文件夹查询容量
cd /
du -sh * | sort -n
磁盘有40G,加起来有30G左右的文件找不到
自己印象中,已经清理过日志了,但是空间还是没有释放,所以怀疑是进程占用的问题
通过命令 查询已经删除了的文件,并且被进程占用的文件
lsof | grep delete
查询具体的服务,找到对应的服务重启即可
ps -ef | pid号
找到了一下几个服务,一一重启,根据具体的情况来处理就好
systemctl restart rsyslog
systemctl restart php-fpm-73
最后检查一下
lsof | grep delete
没有了占用文件
df -ah
占用空间已经被释放
版权属于: 三三世界-百宝箱
本文链接: http://33f.net/linux/centos_disk_lost.html
本文最后更新于2022年07月16日 ,已超过889天没有更新,若内容或图片失效,请留言反馈。
本文允许转载,但请在转载时请以超链接或其它形式标明文章出处
@Doug Shume it's ok for me , you can post here.
Saved as a favorite, I like your website!
If some one wishes to be updated with hottest technologies after that he must be visit this site and be up to date daily.
Heello would you mind sharing which blog platform you're using? I'm planning to start my own blog in the near future but I'm having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then moost blogs and I'm looking for something completely unique. P.S Apologies forr being off-topic butt I had to ask!
Thanks to my father who shared with me regarding this webpage, this website is genuinely amazing.
Hi, I have an overflow of customers that I'd like to send to you but I want to make sure you can handle more leads, let me know if you'd like me to send you more info.
zh.us.to 有效
kms.03k.org 有效
kms.chinancce.com
kms.shuax.com 有效
kms.dwhd.org 有效
kms.luody.info 有效
kms.digiboy.ir 有效
kms.lotro.cc 有效
www.zgbs.cc 有效
cy2617.jios.org 有效
@ 权限问题,试试sudo 再加命令。
你好提示Permission denied 怎么办啊