启动xinetd服务
# service xinetd restart
# vim /etc/xinetd.d/rsync
disable = yes改成disable = no
配置文件
# vim /etc/rsyncd.conf
uid = root
gid = root
use chroot = no
max connections = 10
log file = /var/log/rsyncd.log
secrets file = /etc/rsyncd.secrets
[mail]
ignore errors
path = /root/mail/
read only = no
list = no
hosts allow = 192.168.148.0/24
查看rsync的端口是否启动起来了
# netstat -na | grep "873"
客户端连接方法
# rsync -avP --include="emos20140218.tar.gz" --exclude=* --bwlimit=100 192.168.148.101::mail /usr/local/linux/mail/
本文出自 “linux小窝” 博客,请务必保留此出处http://junlinux.blog.51cto.com/2521744/1360040
原文:http://junlinux.blog.51cto.com/2521744/1360040