inotify報錯upper limit on inotify watches reached

在對一個大磁盤進行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即可~

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章