錯(cuò)誤案例 - 架構(gòu)

錯(cuò)誤整體記錄

rsync

1.not a regular file
2.remote  command not found
3.Connection Refuse

錯(cuò)誤詳細(xì)
rsync服務(wù)
1.not a regular file 不是普通文件

scp默認(rèn)只能復(fù)制普通文件 與cp類似
加上-r 即可

[root@backup ~]# scp /etc/  172.16.1.31:/tmp
root@172.16.1.31's password: 
/etc: not a regular file

2.remote command not found

遠(yuǎn)程服務(wù)器中沒(méi)有這個(gè)命令
檢查遠(yuǎn)程服務(wù)器是否安裝了rsync 沒(méi)有yum安裝即可

[root@backup ~]# rsync -av /etc 172.16.1.31:/tmp
root@172.16.1.31's password: 
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(226) [sender=3.1.2]

3.Connection refused

連接拒絕
檢查是否能ping通對(duì)應(yīng)服務(wù)器

  [root@backup ~]# rsync -avz /etc 176.16.1.31:/tmp
ssh: connect to host 176.16.1.31 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容