vim /etc/xinetd.d/rsync
service rsync
{
disable = no
flags = IPv6
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
vim /etc/rsync/rsyncd.conf
uid = root
gid = root
use chroot = false
read only = false
hosts allow=192.168.10.0/255.255.255.0
hosts deny=*
max connections = 8
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsync.log
transfer logging = yes
log format = %t %a %m %f %b
syslog facility = daemon
2、192.168.10.2 配置
1)、inotify安装
tar xf inotify-tools-3.14.tar.gz
cd inotify-tools-3.14
./configure --prefix=/usr/local/services/inotify-3.14
make && make install
cd /usr/local/services
ln -sf inotify-3.14 inotify