这里涉及到linux文件系统事件监控框架的概念
Inotify:高效实时的Linux文件系统事件监控框架
经查阅 解决办法如下:
添加最大监控文件数量
一种方法就是重启电脑,显然这种方法不是值得推荐和令人喜欢的
另一种方法
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p 生效
或者选择 以下方法:
查看目前的最大值
To find your current limit, type this in your terminal:
$cat /proc/sys/fs/inotify/max_user_watches
增加最大值
Which is typically 8192 by default.
To increase your limit, type this:
$sudo sysctl fs.inotify.max_user_watches=16384
永久设置最大值
To permanently set this limit, type this:
$echo 16384 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
原文链接:https://blog.youkuaiyun.com/changer_sun/article/details/79212313
本文介绍了如何在Linux系统中调整Inotify的最大监控文件数量,以解决监控限制问题。通过运行命令`sudosysctlfs.inotify.max_user_watches=16384`和`echo16384|sudotee-a/proc/sys/fs/inotify/max_user_watches`可以临时和永久性地增加这个限制,从而提升文件系统事件监控的效率。
1770

被折叠的 条评论
为什么被折叠?



