Part 1 rsync server configuration
1. Download and install
A. Install yum. Yum install rsync
B. Download the rsync Installation File
# Tar zxvf rsync-2.6.9.tar.gz
# Cd rsync-2.6.9
#./Configure -- prefix =/usr/local/rsync
# Make
# Make install
2. Enable rsync
A. Start rsync
# Vi/etc/xinetd. d/rsync
# default: off# description: The rsync server is a good addition to an ftp server, as it # allows crc checksumming etc.service rsync{ disable = no flags = IPv6 socket_type = stream wait = no user = root server = /usr/bin/rsync server_args = --daemon log_on_failure += USERID}
B. manually generate the configuration file/etc/rsyncd. conf.
#############---- Global configuration ----- ############# PID file =/var/run/rsyncd. pid # PID file, no Port = 873 # listening port uid = root # user name gid = root for running rsync daemon # user group for running rsync daemon use chroot = yesread only = No hosts allow = 127.0.0.1/ 24 172.18.0.0/16 # IP addresses allowed for access, do not fill in. For security reasons, enter hosts Deney = 183.232.24.190 # Access Denied IP address, do not fill in ###########---- module configuration ############ [sinawap] Path =/usr/local/ testread only = nolist = No # do not allow the column file auth users = username # Do not enter secrets file =/etc/rsync. PAS # If you have a user, you can enter the password file address as follows: hosts allow = 127.0.0.1/24 172.18.0.0/16 # IP addresses allowed for access, do not enter, for security, enter hosts deny = 0.0.0.0/0 # Access Denied IP address. Do not enter # transfer logging = Yes
C. Start the service
A) Service xinetd restart
B) Start/usr/bin/rsync independently -- deamon
----- To be continued -----
Rsync related sorting