原文地址: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 问题解决。
本文介绍了一种常见情况:从内网机器使用rsync命令向远程服务器推送数据时遇到命令未找到错误的情况。文中详细解释了错误产生的原因,并提供了解决方案,即通过在远程服务器上安装rsync来修复该问题。
4万+

被折叠的 条评论
为什么被折叠?



