在服务端操作
关闭防火墙和selinux
[root@ c7-41 ~]# systemctl stop firewalld
[root@ c7-41 ~]# setenforce 0
查看是否有rsync,没有则安装
[root@ c7-41 ~]# rpm -qa rsync
rsync-3.1.2-6.el7_6.1.x86_64
[root@ c7-41 ~]# yum -y install rsync
修改rsync的配置文件
[root@ c7-41 ~]# vim /etc/rsyncd.conf
[root@ c7-41 ~]# cat /etc/rsyncd.conf #配置文件不能有空格
#全局配置
uid = rootuid = root #用户
gid = root #用户组
use chroot = no #安全相关
max connections = 200 #最大链接数
timeout = 300 #超时时间
pid file = /