bash: rsync: command not found 報(bào)錯(cuò)原因以及解決辦法
2017-01-15 21:42:59
13461
從一個(gè)內(nèi)網(wǎng)機(jī)器往線上一個(gè)新服務(wù)器1.2.3.4(代替)推送數(shù)據(jù),發(fā)現(xiàn)無法推送,報(bào)如下錯(cuò)誤:
[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]
報(bào)錯(cuò)原因:
線上的新服務(wù)器沒有安裝rsync導(dǎo)致。
解決辦法:
新服務(wù)器(目標(biāo)服務(wù)器)執(zhí)行命令 yum install rsync -y 問題解決。