bash: rsync: 未找到命令【某一端没有安装rsync(源机子或目标机子没装)】
今天学习了rsync的同步操作,本打算往服务器同步一些数据,于是报了一下错误:bash: rsync: 未找到命令
rsync: connection unexpectedly closed (0 bytes received so far)
rsync error: error in rsync protocol data stream (code 12) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/io.c(453)
通过排查客户机和服务器,发现居然是服务器端没有安装rsync。
在服务器端安装rsync即可:
# yum -y install rsync
注:
同步与被同步机器都要安装rsync
否则会出现报错
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far)
rsync error: remote command not found (code 127) at io.c(226)
页:
[1]