TA的每日心情 | 怒 前天 13:01 |
---|
签到天数: 1643 天 [LV.Master]伴坛终老
|
今天学习了rsync的同步操作,本打算往服务器同步一些数据,于是报了一下错误:
bash: rsync: 未找到命令
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
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) [sender=2.6.9]
通过排查客户机和服务器,发现居然是服务器端没有安装rsync。
在服务器端安装rsync即可:
[root@localhost ~]# yum -y install rsync
注:
同步与被同步机器都要安装rsync
否则会出现报错
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]
|
|