码迷,mamicode.com
首页 > 其他好文 > 详细

rsync的配置文件

时间:2016-07-25 00:24:30      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:rsync

vim  /tec/rsync.conf

port = 8730

log file=/var/log/reync.log

pid file=/var/run/rsync.pid


[aming]

path=/tmp/rsync

use chroot = yes

max connections=4

read only = yes

list=yes

uid=root

gid=root

auth users=aming

secrets file=/etc/rs.passwd

hosts allow=192.168.11.190


[aming1]

path=/tmp/rsync123

use chroot=yes

max connections=4

read only =yes

list=yes

uid=root

gid=root

hosts allow =192.168.11.180


配置文件结束

启动  rsync  --daemon

查看服务:ps  aux | grep  rsync

netstat  -lnp

创建日志文件

cat /var/log/rsync.log

查看另一个服务器的8730端口能不能正常使用

telnet 192.168.11.16  8730

按ctrl  +  ]  停止,再输入quit退出

修改密码文件

vim  /etc/rs.passwd

aming:123aaa

修改权限只允许自己看

chmod  400  /etc/rs.passwd

本文出自 “王森” 博客,请务必保留此出处http://zhibeiwang.blog.51cto.com/7555525/1829452

rsync的配置文件

标签:rsync

原文地址:http://zhibeiwang.blog.51cto.com/7555525/1829452

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!