首页 > 其他分享 >Linxu解决systemctl启动服务失败,Error: No space left on device

Linxu解决systemctl启动服务失败,Error: No space left on device

时间:2023-05-26 15:01:44浏览次数:37  
标签:fs sysctl inotify space max No watches user device

查看磁盘空间实际占用情况

查看磁盘inodes占用情况


这两部发现都没有问题。要是哪里发现被沾满了,直接删除解放空间。此篇是讲另一种情况。

查看默认inotify的max_user_watches值

[root@VM-4-4-centos nginx]# sysctl fs.inotify
fs.inotify.max_queued_events = 16384
fs.inotify.max_user_instances = 128
fs.inotify.max_user_watches = 8192

查看当前使用量

[root@VM-4-4-centos nginx]# find /proc/*/fd -user "$USER" -lname anon_inode:inotify \
> -printf '%hinfo/%f\n' 2>/dev/null \
> | xargs cat | grep -c '^inotify'
8201
# 发现已经过了最大值
# 调整max_user_watches大小,扩大10倍
vim /etc/sysctl.conf 
fs.inotify.max_user_watches = 81920
# 刷新配置
sysctl -p
# 再次查看inotify
sysctl fs.inotify
# 发现已经变成81920,这时候再执行systemctl的服务,发现已经不报错了

标签:fs,sysctl,inotify,space,max,No,watches,user,device
From: https://www.cnblogs.com/tdyp/p/17434758.html

相关文章

  • arduino esp32 ds18b20 实例代码
    #include<OneWire.h>#include<DallasTemperature.h>//引脚定义#defineONE_WIRE_BUS15//库引用实例OneWireoneWire(ONE_WIRE_BUS);DallasTemperaturesensors(&oneWire);voidsetup(void){Serial.begin(9600);sensors.begin();}voidloop(vo......
  • How to fix CMake error Could not find a package configuration file provided by
    CMakeErrorat/usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:117(find_package):Couldnotfindapackageconfigurationfileprovidedby"boost_filesystem"(requestedversion1.71.0)withanyofthefollowingnames:boos......
  • docker login harbor x509: certificate signed by unknown authority
    前言dockerloginharborx509:certificatesignedbyunknownauthority解决打开/etc/docker/daemon.json,如果没有这个文件新增即可vim/etc/docker/daemon.json加入insecure-registries{"insecure-registries":["harbor.xxxx.com:1111"]}重启dockersudo......
  • c++ condition_variable wait notify_one
    #include<chrono>#include<condition_variable>#include<ctime>#include<curl/curl.h>#include<curl/easy.h>#include<fstream>#include<future>#include<iostream>#include<iomanip>#include<m......
  • C#与Node JS互相实现DES加密解密
    具体的加密算法可以可自行查询其区别,这里只是抛砖引玉,大部分加密方法基本都能通过改变传入参数来实现。C#相关类文档: System.Security.Cryptography命名空间|MicrosoftLearnNodeJS相关文档:Crypto|Node.jsv16.20.0Documentation(nodejs.org) C#加密函数:1using......
  • 解决npm npm does not support Node.js
    原因:node.js和npm版本不对应参考官网版本对应(https://nodejs.org/zh-cn/download/releases/),下载对应的node.js版本和更新npm版本npmupdate常用命令使用 npm-check检查更新npminstall-gnpm-checknpm-check2.npm-upgrade更新......
  • C# 操作List集合报错:集合被修改,枚举操作可能不会执行(Collection was modified, enume
    问题Ihavemultithreadsapplicationandigetthiserror**************ExceptionText**************System.InvalidOperationException:Collectionwasmodified;enumerationoperationmaynotexecute.atSystem.ThrowHelper.ThrowInvalidOperationExcepti......
  • 使用resource读取properties文件,出现Cause: java.sql.SQLException: No suitable driv
    ###Errorqueryingdatabase.Cause:java.sql.SQLException:Nosuitabledriverfoundforhttp://maven.apache.org###Theerrormayexistincom/louis/dao/UserMapper.xml###Theerrormayinvolvecom.louis.dao.UserMapper.getUserList###Theerroroccurred......
  • Nodejs 应用编译构建提速建议
    编译构建的整体过程拉取编译镜像拉取缓存镜像拉取项目源码挂载缓存目录执行编译命令(用户自定义)持久化缓存上传编译镜像为什么在本地构建就快,但编译机上很慢在编辑机上每次的构建环境都是全新的,完成一次构建比本地需要多一些步骤:现成的全局包缓......
  • Java并发--sleep()、wait()、notify()、notifyAll()方法详解
    sleep()和wait方法比较 基本差别:1,sleep是Thread类中的native方法、wait是Object类中的方法。/***Causesthecurrentlyexecutingthreadtosleep(temporarilycease*execution)forthespecifiednumberofmilliseconds,subjectto*theprecisionandaccuracy......