zoukankan      html  css  js  c++  java
  • linux出现tmp空间满的情况解决

    cd命令tab补全的时候报错:

    cd /ro-bash: cannot create temp file for here-document: No space left on device
    -bash: cannot create temp file for here-document: No space left on device
    -bash: cannot create temp file for here-document: No space left on device
    -bash: cannot create temp file for here-document: No space left on device
    -bash: cannot create temp file for here-document: No space left on device
    df -hl查看之后发现tmp空间是满的(只有1M,脑残管理员。。。。)

    删掉了无用的数据之后正常

    后来搜了一下,也可以自己建立一个tmp目录,而不是将文件写在系统的tmp目录中:

    https://blog.csdn.net/feihongwang/article/details/17383833

    解决办法 mkdir  文件夹——你可以使用的文件夹 比如说 mkdir /mnt/kernelsrc/tmp

    然后只要export TMPDIR=/mnt/kernelsrc/tmp

    这样就不会出现 tmp文件夹不够用的情况。

  • 相关阅读:
    学习笔记-级数
    闭包
    superfetch服务到底该不该关闭
    用tor进入“深网”
    浏览器内核
    媒体查询实现响应式布局
    oracle用浏览器界面管理数据库
    angular登录状态检查
    从输入网址后。。。。。。
    原型
  • 原文地址:https://www.cnblogs.com/rainsoul/p/8716201.html
Copyright © 2011-2022 走看看