Sersync2 can synchronize a directory on a machine to multiple machines in real time, which is very suitable for a large number of small files such as web pages. 1. configure the synchronization target server # vi/etc/rsyncd. confuidrootgidrootmaxconnections36000usechroot...
Sersync2 can synchronize a directory on a machine to multiple machines in real time, which is very suitable for a large number of small files such as web pages.
1. configure the target synchronization server
# Vi/etc/rsyncd. conf
Uid = root
Gid = root
Max connections = 36000
Use chroot = no
Log file =/var/log/rsyncd. log
Pid file =/var/run/rsyncd. pid
Lock file =/var/run/rsyncd. lock
[Rsync] # synchronization name
Path =/opt/rsync
Comment = test files
Ignore error = yes
Read only = no
Hosts allow = 192.168.0.254
Hosts deny = *
Note: '/etc/rsyncd. Conf' does not exist. you need to create it by yourself. configure multiple target machines as shown above.
2. start the target server rsync to prepare for receiving data
# Rsync -- daemon
3. install and configure sersync on the master server
# Tar xf sersync2.5_64bit_binary_stable_final.tar.gz
# Cd GNU-Linux-x86/
# Vi confxml. xml, modify the following line
# Local synchronization target
# Directory server IP address and synchronization name
4. run sersync
#./Sersync2-d-r
Author "William's memory fragments"