记录我工作学习生活中的点点滴滴......

rsync及sersync安装记录
发布于 Linux
2015-12-10 17:46:01
1653
0

1、每个都要安装rsync

yum -y install rsync


2、配置从

vi /etc/rsyncd.confv

	
  1. uid = root
  2. gid = root
  3. use chroot = yes
  4. max connections = 100
  5. pid file = /var/run/rsyncd.pid
  6. log file = /var/log/rsync
  7. secrets file = /etc/rsyncd.secrets
  8. list = no
  9. strict modes = no
  10. [wwwroot]
  11. path=/home/wwwroot/
  12. host allow=10.105.55.91
  13. read only=no
  14. uid=www
  15. gid=www
vi /etc/rsyncd.secrets

root:123456

/usr/bin/rsync --daemon --config=/etc/rsyncd.conf


2、配置主

vi /etc/rsyncd.conf 同从

vi /etc/rsyncd.secrets

123456


3、主 安装sersync

wget http://sersync.googlecode.com/files/sersync2.5_64bit_binary_stable_final.tar.gz

解压并拷贝到安装目录

tar xzvf sersync2.5_64bit_binary_stable_final.tar.gz

mv GNU-Linux-x86 /usr/local/sersync

4、配置sersync

vi confxml.xml

	
  1. <sersync>
  2.  <localpath watch="/opt/tongbu">
  3.   <remote ip="192.168.8.42" name="tongbu"/>
  4.   <remote ip="192.168.8.39" name="tongbu"/>
  5.  </localpath>
  6.  <crontab start="true" schedule="30"/>
  7.  <plugin name="refreshCDN" start="true"/>
  8. </sersync>

5、运行

/usr/bin/rsync --daemon --config=/etc/rsyncd.conf

/usr/local/sersync/sersync2 -d -r -o /usr/local/sersync/confxml.xml



分享本文到:
除非特殊注明,本文版权归原作者所有,欢迎转载!转载请注明版权以及本文地址,谢谢。
转载保留版权:Pakey's BLog >>Linux >>rsync及sersync安装记录
本文地址:http://www.pakey.net/blog/rsyncJisersyncAnZhuangJiLu.html