linux inotifywait

    [root@rui~]#uname-r 2.6.18-194.el5 Youhavenewmailin/var/spool/mail/root [root@rui~]#ll/proc/sys/fs/inotify/ total0 -rw-r--r--1rootroot0Oct2412:44max_queued_events -rw-r--r--1rootroot0Oct2412:44max_user_instances -rw-r--r--1rootroot0Oct2412:44max_user_watches [root@rui~]# 1、下载 wget --no-check-certificate http://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz2、编译 tarzxfinotify-tools-3.14.tar.gz cdinotify-tools-3.14 ./configure make makeinstall 3、一些小处理 如果是32位系统 ln-s/usr/local/lib/libinotifytools.so.0/usr/lib/libinotifytools.so.0 如果是64位系统 ln-s/usr/local/lib/libinotifytools.so.0/usr/lib64/libinotifytools.so.0 5、无论32或者64位系统都执行 [root@rui~]#echo104857600>/proc/sys/fs/inotify/max_user_watches [root@rui~]#echo'echo104857600>/proc/sys/fs/inotify/max_user_watches'>>/etc/rc.local [root@rui~]#echo'/usr/local/bin/inotifywait-mrq-o/var/log/change.log--timefmt'%F%T'--format'%T%w%f%e'-eclose_write-ecreate-edelete-emove-eattrib/www/web/ttc.com/public_html >>/etc/rc.local

学习手记

一个能从别人的观念来看事情,能了解别人心灵活动的人,永远不必为自己的前途担心。

linux inotifywait

相关文章:

你感兴趣的文章:

标签云: