首页 > 其他 > 详细

CentOS7 搭建 rsync 服务器

时间:2017-08-08 15:03:15      阅读:186      评论:0      收藏:0      [点我收藏+]

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

 

CentOS7 搭建 rsync 服务器

原文:http://www.cnblogs.com/panhongyin/p/7306621.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!