【问题描述】
今天在使用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(226) [sender=3.1.2]
【问题原因】
之所以会出现这个问题是因为,不仅同步的机器需要安装rsync,而且在被同步的机器上也需要安装rsync。
【解决办法】
yum -y install rsync