设为首页 加入收藏

TOP

fs.inotify.max_user_watches默认值太小,导致too many open files
2019-09-03 01:49:47 】 浏览:17
Tags:fs.inotify.max_user_watches 默认 太小 导致 too many open files

运行环境:centos7.5

linux 打开文件数 too many open files 解决方法
fs.inotify.max_user_watches默认值太小,导致too many open files
执行:sysctl -w fs.inotify.max_user_watches="99999999"(后面值根据实际情况可自行调整)
查询是否生效:cat /proc/sys/fs/inotify/max_user_watches

 

 

永久生效方法如下:(建议采用此方法)
vim /etc/sysctl.conf
fs.inotify.max_user_watches = 1280000(后面值根据实际情况可自行调整)

fs.inotify.max_user_instances = 512
添加并运行/sbin/sysctl -p即可 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇linux中批量替换文本中字符串--转.. 下一篇阿里云服务器Ubuntu 14.04.2和cen..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目