inotify报错upper limit on inotify watches reached

来源:互联网 发布:util.date转sql.date 编辑:程序博客网 时间:2024/05/24 13:28

在对一个大磁盘进行inotify监听时,爆出如下错误:
Failed to watch /mnt/;
upper limit on inotify watches reached!
Please increase the amount of inotify watches allowed per user via `/proc/sys/fs/inotify/max_user_watches’.

cat一下这个文件,默认值是8192,echo 8192000 > /proc/sys/fs/inotify/max_user_watches即可~

0 0
原创粉丝点击