1.主服务器安装rsync
wget https://download.samba.org/pub/rsync/src/rsync-3.1.1.tar.gz
tar -zxvf rsync-3.1.1.tar.gz
./configure --prefix=/usr/local/rsync
make && make install
cd /usr/local/rsync/
echo "密码" >/usr/local/rsync/rsync.passwd
chmod 600 rsync.passwd
2.主服务器安装inotify-tools https://github.com/rvoicilas/inotify-tools/
wget http://cloud.github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz
tar zxvf inotify-tools-3.14.tar.gz
cd inotify-tools-3.14
./configure --prefix=/usr/local/inotify
make && make install
未完待续
linux文件同步+nginx负载均衡分流网站
原文:http://my.oschina.net/u/232595/blog/474674