首页 > 其他 > 详细

rsync的配置文件

时间:2016-07-25 00:23:44      阅读:276      评论:0      收藏:0      [点我收藏+]

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的配置文件

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

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