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

发表回复