bash: rsync: command not found报错原因以及解决办法


原文地址:http://www.21yunwei.com/archives/5184

 

从一个内网机器往线上一个新服务器1.2.3.4(代替)推送数据,发现无法推送,报如下错误:

  1. [root@network ~]$/usr/bin/rsync -avz -P -e ssh test.txt 1.2.3.4:/home/wwwroot/test
  2. bash: rsync: command not found
  3. rsync: connection unexpectedly closed (0 bytes received so far) [sender]
  4. rsync error: remote command not found (code 127) at io.c(600) [sender=3.0.6]

报错原因:
线上的新服务器没有安装rsync导致。

解决办法:
新服务器(目标服务器)执行命令 yum install rsync -y 问题解决。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM