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目录: