【問題描述】
今天在使用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