rsync SERVER失败

scr*_*die 6 linux rsync centos

我已经设置了一个rsync服务器 - > /etc/rsyncd.conf

max connection = 5  
log file = /var/log/rsync.log  
[web]  
path = /srv/www/html  
read only = false  
list = yes  
hosts allow = 127.0.0.1  
uid = nobody  
gid = nobody  

[root@localhost www]# ls -l /srv/www/html/  
-rwxrwxrwx. 1 amit amit 8 Apr 28 10:37 index.html  
Run Code Online (Sandbox Code Playgroud)

如果我做

$rsync 127.0.0.1::
$web  
Run Code Online (Sandbox Code Playgroud)

这是正确显示模块名称,但如果我这样做

$rsync 127.0.0.1::web  
@ERROR: chroot failed  
rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]
Run Code Online (Sandbox Code Playgroud)

我不知道为什么?我首先在localhost上测试rsync的工作,因为远程rsync失败了

scr*_*die 17

解决方案是
在服务器添加的/etc/rsyncd.conf中

use chroot = false
Run Code Online (Sandbox Code Playgroud)

我不知道为什么它默认是真的.在浏览rsync文档时,通过运气获得解决方案.希望这为别人节省时间.
干杯