今天从一台centos4的server上同步一台freebsd server的数据, 使用的rsync
结果报错如下:
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(635) [sender=3.0.2]
一开始很苦恼, 想着这机器明显是安装有rsync, 怎么能说”rsync: command not found”呢??

后来google了半天, 也没有发现什么头绪, 知道我觉得freebsd机器上也应该有rsync, 于是pkg_add -r rsync

结果自然就好了, 其实就是因为远程服务器上上没有安装rsync造成的, 他们之间使用rsync通讯需要自己的一些认证, 安装了自然就好啦