2、安装inotify-tools
yum install make gcc gcc-c++ #安装编译工具
inotify-tools下载地址:http://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz
上传inotify-tools-3.14.tar.gz到/usr/local/src目录下
cd /usr/local/src
tar zxvfinotify-tools-3.14.tar.gz #解压
cd inotify-tools-3.14 #进入解压目录
./configure--prefix=/usr/local/inotify #配置
make #编译
make install #安装