bash: rsync: command not found

今天在执行rysnc传文件的时候出现如下错误:

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(463) [sender=2.6.8]

该错误是因为对端服务器没有安装rysnc导致的,解决方法只要在对端安装rysnc即可:

yum -y install rsync

或者:

apt-get install rsync

:)