bash: rsync: 未找到命令

今天学习了rsync的同步操作,本打算往服务器同步一些数据,于是报了一下错误:

 ➜  ~ rsync -r /Users/Apple/index.html root@1.1.1.1:/var/www/html/
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 vsftpd

猜你喜欢

转载自blog.csdn.net/bacteriumx/article/details/79828252