我已经设置了一个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
如果我这样做$rsync 127.0.0.1::
$web
then it incorrectly displays the module name.
正确的显示了模块名称,但如果我加上标签,它就会错误地显示模块名称。$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]
我不知道为什么?我首先在本地主机上测试rsync的工作情况,因为它在远程同步失败了。