1:安装软件包:

yum install -y rsync

 

2:修改配置文件: /etc/rsyncd.conf

uid = root
gid = root
use chroot = yes

#下面是不同模块各自的配置和路径,仅供参考
[yum] 
        path = /mirrors/yum/
        comment = repository
        list = true
        uid = root
        gid = root
        hosts allow = *

[apt]
        path = /mirrors/apt/
        comment = repository
        list = true
        uid = root
        gid = root
        hosts allow = *

 

3:启动服务:

rsync --daemon --no-detach

 

4:客户端测试命令:

rsync -avh -H --delete  --progress  rsync://10.3.10.34/apt/  ./apt

 

相关文章:

  • 2021-08-20
  • 2021-08-11
  • 2021-11-12
  • 2021-12-19
  • 2021-08-07
  • 2021-12-06
  • 2021-09-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-12-10
  • 2022-12-23
  • 2021-10-09
  • 2021-12-19
相关资源
相似解决方案