vim /etc/rsyncd.conf
文件内容如下
uid = root
gid = root
use chroot = no
hosts allow = 192.168.0.0/16 10.0.0.0/8
pid file = /var/run/rsyncd.pid
log file = /var/log/rsync.log
path = /
read only = no
配置完以后运行
rsync --daemon
文件内容如下
uid = root
gid = root
use chroot = no
hosts allow = 192.168.0.0/16 10.0.0.0/8
pid file = /var/run/rsyncd.pid
log file = /var/log/rsync.log
path = /
read only = no
配置完以后运行
rsync --daemon