sersync sync同步配置笔记

安装从机rsync
 
yum install rsync

vi /etc/rsyncd.conf 

uid=root
gid=root
max connections=100
use chroot=no
log file=/var/log/rsyncd.log
pid file=/var/run/rsyncd.pid
lock file=/var/run/rsyncd.lock
[tongbu1] #和sersync相关内容对应
path=/home/wwwroot
#uid = root
comment = tongbu1
ignore errors = yes
read only = no
hosts allow = 10.96.0.48
hosts deny = *
 
 
启动服
rsync –daemon
ps -ef | grep rsync
打赏

发表评论

电子邮件地址不会被公开。 必填项已用*标注