一叶知秋.

业精于勤,荒于嬉;行成于思,毁于随。

bash: rsync: command not found

环境:
centos6.0 64位
rsync 3.0.6

问题:

[root@lfs ~]# rsync -avz /data/* root@10.0.0.102:/data/* 
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]

原因:目标服务器没有安装rsync

解决办法:

#目标服务器执行
yum -y install rsync
posted @ 2020-08-24 12:06  ccku  阅读(1337)  评论(0编辑  收藏  举报