vim rsync.sh yum remove rsync &>>/dev/null yum install -y rsync &>>/dev/null && echo 下载成功 export RSYNC_PASSWORD=123 systemctl enable rsyncd &>>/dev/null systemctl start rsyncd &>>/dev/null && echo 启动成功,尽情享用我