Inotify+Rsync 报错

Inotify+Rsync进行触法同步一个图片目录时候,日志中报错:
Failed to watch /home/www/ecstore/public;
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
即可

或者

在inotify 的时候经常遇到 建议写入sysctl.conf
fs.inotify.max_user_watches=8192000

猜你喜欢

转载自0001111.iteye.com/blog/2001661