Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2549319
  • 博文数量: 271
  • 博客积分: 6659
  • 博客等级: 准将
  • 技术积分: 3141
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-17 10:24
文章分类

全部博文(271)

文章存档

2016年(2)

2015年(12)

2014年(7)

2013年(19)

2012年(22)

2011年(81)

2010年(128)

分类: LINUX

2011-05-12 15:06:49

在使用inotify监控磁盘时  inotify报错
[root@lamp1 ~]# sh rsync.sh start

Rsync is Start -- 2011-05-12 14:59:31
Failed to watch /usr/local/apache2/htdocs/; 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
阅读(5630) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~