原文地址:http://www.21yunwei.com/archives/5184
從一個內網機器往線上一個新服務器1.2.3.4(代替)推送數據,發現無法推送,報如下錯誤:
- [root@network ~]$/usr/bin/rsync -avz -P -e ssh test.txt 1.2.3.4:/home/wwwroot/test
- 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 問題解決。