No space left on device /tmp 原因和解决方法

位置:首页 / 新闻中心 / 知识教程

知识教程 Admin 2024-02-23 16:25:04 2150
df 命令若显示如下
 
 
文件系统                 1K-块      已用      可用 已用% 挂载点
/dev/sda1             19734388  16884588   1847348  91% /
tmpfs                   257344         0    257344   0% /lib/init/rw
udev                    252968       152    252816   1% /dev
tmpfs                   257344        88    257256   1% /dev/shm
overflow                  1024         0      1024   0% /tmp
 
 
 
 
在etc文件夹中有mountoverflowtmp脚本,主要作用就是为了系统的安全性(系统可以正常启动等),当磁盘剩余空间过小时:
 
 
执行脚本中的此命令 
mount -t tmpfs -o size=1048576,mode=1777 overflow /tmp

mount -t tmpfs -o size=6086M none /tmp

mount -t tmpfs -o size=6024M /tmp

 
 想解决此问题,若磁盘空间已清理,可以reboot 或者 取消挂载
 
 
 另:/tmp的默认属性是drwxrwxrwt,里面包含一个 sticky bit,主要目的也是为了安全,在多用户系统中只有文件的创建者有权利 
 rename || delete此文件

以上就是“No space left on device /tmp 原因和解决方法”的详细内容,更多请关注木子天禾科技其它相关文章!

以上就是“No space left on device /tmp 原因和解决方法”的详细内容,更多请关注木子天禾科技其它相关文章!

15934152105 扫描微信