No space left on device的解决方法

/ 0评 / 1

服务器php报错

ERROR: Unable to create the PID file (/usr/local/php/var/run/php-fpm.pid).: No space left on device

df -h查看服务器空间还有剩余

再次检查inodes是否满了 df -i

确实满了,然后具体查找占用较高的目录

for i in /*; do echo $i; find $i | wc -l; done

/var
3108240

for i in /var/*; do echo $i; find $i | wc -l; done

/var/spool
3099112

for i in /var/spool/*; do echo $i; find $i | wc -l; done

/var/spool/clientmqueue
3099047

确定到/var/spool/clientmqueue目录,再去删除这些文件

cd /var/spool/clientmqueue; ls |xargs rm -rf

发表评论

邮箱地址不会被公开。 必填项已用*标注