|
同步目标服务器
Vim /etc/rsyncd.conf
uid=root gid=root max connections=36***00 use chroot=no log file=/var/log/rsyncd.log pid file=/var/run/rsyncd.pid lock file=/var/run/rsyncd.lock [web] path=/data0/web comment = McShell web ignore errors = yes read only = no hosts allow = 10.1.0.0/24 hosts deny = *
编辑完之后执行rsync –daemon 开启守护进程
剩下的服务器都一样配置。
同步服务器的confxml.xml如下
<?xml version="1.0" encoding="ISO-8859-1"?> <head version="2.2"> <host hostip="10.1.0.2" port="8008"></host> <filter start="false"> <exclude expression="(.*)\.gz"></exclude> <exclude expression="^info/*"></exclude> </filter> <sersync> <localpath watch="/data0/web " debug="false"> <remote ip="10.1.0.4" name="web"/> <remote ip="10.1.0.5" name="web"/> <remote ip="10.1.0.6" name="web"/> <!--<remote ip="192.168.8.39" name="tongbu"/>--> </localpath> <rsyncauth start="flase" users="www" passwordfile="/etc/rsync.pas"/> <crontab start="false" schedule="600"> <crontabfilter start="false"> <exclude expression="*.php"></exclude> <exclude
本文由:SKF轴承 http://wwww.9-zc.com 整理发布 |
|