inofity安装
yum -y install libtool*
git clone https://github.com/rvoicilas/inotify-tools.git
cd inotify-tools/
./configure
make
make install
inotifywait -mrq -e modify,delete,create,attrib /www | while read FILES;do
echo "${FILES} chaged" >> /inotify.log
sh /rsync.sh
done