所以在CentOS 7上安装Unison之后,我想使用repeat = watch函数。 通过手动同步运行同步完美工作。 但是对于更改时的自动同步,可以使用repeat=watch 。 但是这一行给我的错误:
Fatal error: No file monitoring helper program found.
这可能意味着它无法findfsmonitor.py(至less,这是我的想法)。
有谁知道一个解决scheme?
谢谢。
我能够这样解决这个问题:
1:安装ocaml和ctags yum install ocaml ocaml-camlp4-devel ctags ctags-etags
2:安装inotify:
3:安装python-inotify
wget rpm:
rpm -Uvh RPM FILE NAME*rpm
yum install python-inotify 下载svn dump van unison
svn checkout https://webdav.seas.upenn.edu/svn/unison cd trunk make NATIVE=true UISTYLE=text sudo cp src/unison /usr/local/bin/ sudo cp src/fsmonitor.py /usr/local/bin/
创build一个私钥 – 公钥
ssh-keygen -t rsa -b 4096 ssh-copy-id root@IP
在root / .unison中configurationunison
root=var/www root=ssh://IPaddr//var/www/ batch=true repeat=watch prefer=newer
我不知道我采取的任何步骤是无关紧要的,但它在最后工作。