笔者对这篇文章重新整理了下,详见Linux笔记之配置rsync服务的远程同步服务器
1.服务器端安装
yum install rsync
2.启用rsyncd服务,
systemctl enable rsyncd
3.关闭防火墙
systemctl disable firewalld关闭SeLinux
setenforce 0
4.配置vim /etc/rsyncd.conf
uid = root
gid = root
use chroot = no
read only = no
hosts allow=192.168.66.0/255.255.255.0
#hosts deny=*
max connections = 5
pid file = /var/run/rsyncd.pid # 指定Rsync服务所使用的进程文件
secrets file = /etc/rsyncd/rsyncd.passwd # 指定Rsync认证使用的密码存放文件
log file = /var/log/rsync.log # 指定Rsync服务所使用的日志文件
transfer logging = yes
log format =