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