天天看點

Rsync+inotify實作資料實時同步

  1. 下載下傳軟體

    wget http://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz

2.驗證Rsync

rsync -avz -e ssh /home/wwwroot/default/images/ [email protected].*.*:/home/wwwroot/default/images/

3安裝軟體

tar zxvf inotify-tools-3.14.tar.gz

./configure --prefix=/usr/local/share/inotify-tool

make && make install

echo $?

  1. 缺點

    10-100k 并發200-300 極限