我是靠谱客的博主 虚拟缘分,这篇文章主要介绍解决Linux出现“cannot create temp file for here-document: No space left on device”的问题,现在分享给大家,希望可以做个参考。

“cannot create temp file for here-document: No space left on device”

译:“磁盘的空间已经满了,这时候可以进行扩容,或者将该磁盘的部分目录迁移到别的磁盘”

解决方法:

1、df -h 查看硬盘空间 

2、top 查看cpu及内存

3、du -h –max-depth=1 /var/log/*  查看/var/log路径下文件的大小

4、du -sh /*  查看哪个目录最大

5、cat /dev/null > /var/log/mongodb/mongod.log  清空mongodb日志文件

cd /var/log
cat /dev/null > mongod.log
cat /dev/null > mongo.log
echo "mongodb logs cleaned up."

最后

以上就是虚拟缘分最近收集整理的关于解决Linux出现“cannot create temp file for here-document: No space left on device”的问题的全部内容,更多相关解决Linux出现“cannot内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(126)

评论列表共有 0 条评论

立即
投稿
返回
顶部