您现在的位置是: 首页 > 运维 Linux no space left on device 出现设备上没有空间问题
Linux no space left on device 出现设备上没有空间问题
2020-06-09 【运维】 2466人已围观 5188次浏览
简介Linux no space left on device 出现设备上没有空间问题
今早发现 Redis 服务不可用,提示设备上没有空间,想到服务器上磁盘是完全够用的,不应该出现此类问题才对,ssh 连上服务器,df -h 发现磁盘已经 100% 了,怀疑是某日志文件过大导致
首先是在系统根目录执行下面命令,查看具体是那个文件夹导致磁盘消耗
cd /
du -sh *
发现 /root 文件夹消耗了 60 多G的空间,这是完全不合理的,之后进入 /root 文件夹,查看所有的文件(包含隐藏文件)
cd /root
ls -la
输出的信息中,发现了三个常见的,会比较大的文件夹
.npm
.nvm
.pm2
首先第一个就怀疑的是 .pm2 文件夹,因为会输出大量的日志文件,执行下面的命令查看具体的磁盘消耗
du -h --max-depth=1 /root/.pm2
输出的信息中,/root/.pm2/logs 文件夹,就占用了 59G 的磁盘空间
之后进入 logs 文件查看,发现都是一些很久以前的没用的日志信息
果断删除,磁盘空间恢复,问题解决,Redis 也正常了
很赞哦! (0)
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案
站长推荐
猜你喜欢
- 【Docker】unauthorized: incorrect username or password
- mac idea spring boot 启动慢
- python scrapy 出现 DEBUG: Filtered offsite request to 错误
- Mac降温软件推荐smcFanControl
- start.spring.io访问太慢,构建SpringBoot项目失败
- Vue 路由跳转错误 NavigationDuplicated: Avoided redundant navigation to current location
- Laravel项目出现could not be opened: failed to open stream: Permission denied
- mysql 索引过长1071-max key length is 767 byte
- npm 出现 Unexpected token < in JSON at position 21330
- SpringBoot 集成 Elasticsearch 7.8.1 出现错误 Factory method 'elasticsearchRestHighLevelClient' threw exception; nested exception is java.lang.NoSuchFieldError: IGNORE_DEPRECATIONS