打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Linux出现cannot create temp file for here

Linux出现cannot create temp file for here-document: No space left on device的问题解决

在终端输入:cd /ho 按tab键时,显示错误:

bash: 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、使用du -h --max-depth=1查找最大的文件,参考:http://www.cnblogs.com/kerrycode/p/4391859.html



temp文件太小且满了。

重建目录tmp

export TMPDIR=/home/tmp

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
cannot create temp file for here document: No space left on device
cannotcreatetempfileforhere-document:Nospaceleftondevice
MYSQL出现Can't create/write to file 'C:\WINDOWS\TEMP
asm管理的Oracle 创建用户表空间
编程中国
电脑各种中英文信息对照及错误信息总汇2
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服