最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
CenteOS 6.3中Rsync安装及配置教程
时间:2022-06-30 21:23:44 编辑:袖梨 来源:一聚教程网
1 |
rsync |
1 |
yum install rsync |
代码如下
uid = root
gid = root
use chroot = no
max connections = 2
strict mades = yes
port = 873
pid file = /home/jhonse/var/run/rsyncd.pid
lock file = /home/jhonse/var/run/rsync.lock
log file = /home/jhonse/var/log/rsyncd.log
[jhonseCode]
path = /www
read only = false
transfer logging = yes
list = no
hosts allow = *
auth users = root
secrets file = /home/jhonse/etc/rsyncd.secrets
[jhonseDataBase]
path = /alidata/server/mysql/var
read only = false
transfer logging = yes
list = no
hosts allow = *
auth users = root
secrets file = /home/jhonse/etc/rsyncd.secrets
第三步: 创建rsyncd.secrets密码文件
格式: 用户:密码
并设置该文件的权限
chmod 600 /home/jhonse/etc/rsyncd.secrets
第四步: 启动rsync服务端
rsync --daemon --config=/home/jhonse/etc/rsyncd.conf
相关文章
- 四海兄弟故乡北极报纸怎么找 北极报纸获取攻略 08-18
- 四海兄弟故乡警察枪战报纸怎么找 警察枪战报纸位置介绍 08-18
- 诛仙2尊师重道奇遇坐标是什么 尊师重道中原奇遇攻略 08-18
- 四海兄弟故乡复活节庆祝活动报纸在哪 复活节报纸位置介绍 08-18
- 龙魂旅人零氪和微氪玩家怎么选角色 角色选择推荐 08-18
- 龙魂旅人装备洗练怎么弄 装备洗练方法介绍 08-18