bash: rsync: command not found

两台服务器传文件,用rsync传输增量时报错

rsync -ravzut -e ‘ssh -p 8004’ –progress /alidata1/70-sc-project/1031/ root@**:/alidata1/70-sc-project/1031/

错误如下:
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(600) [sender=3.0.6]

发现是文件接收端没有安装rsync命令,需要现在接收端安装执行 yum install rsync -y 命令即可

你可能感兴趣的:(java)