tar xvf ocaml-3.10.2.tar.gz cd ocaml-3.10.2 ./configure make world opt make install cd .. 安裝unison:下載地址:www.seas.upenn.edu/~bcpierce/unison/,代碼如下:
tar xvf unison-2.32.52.tar.gz cd unison-2.32.52 make UISTYLE=text THREADS=true STATIC=true cp unison /usr/local/bin cd .. 注:UISTYLE=text THREADS=true STATIC=true表示使用命令行方式,加入線程支持以靜態模式編譯,安裝inotify,下載地址:http://inotify-tools.sourceforge.net:
tar xvf inotify-tools-3.14.tar.gz cd inotify-tools-3.14 ./configure make make install cd .. 配置雙機ssh信任(除以下方法外,也可以在A中生成密鑰后,把A上的.ssh目錄全SCP到B服務器/root/.ssh,這樣方便些),以root用戶登陸,在服務器A上創建.ssh目錄: