集群中分发文件
rsync -av a.txt vmmaster02:/opt/software/
报错
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]
原因
因为vmmaster02虚拟机上没有安装rsync命令,使用yum -y install rsync即可