1.查看是否支持inotify
ls -l /proc/sys/fs/inotify/
2.检查是否安装
rpm -qa inotify-tools
3.安装epol源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
4.检查是否安装epel源
ll /etc/yum.repos.d/epel.repo
若没安装,执行下面命令下载到本地
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
5.安装命令
yum install inotify-tools -y
离线安装:
wget http://downloads.sourceforge.net/inotify-tools/inotify-tools-3.13.tar.gz
tar zxvf inotify-tools-3.13.t