rsync服务配置
2016-01-07 14:07
239 查看
记性不好了 总是忘记 只有记录一下了
1)默认rsync服务没有 /etc/rsyncd.conf文件 需要创建一个 并且贴入以下内容:
uid = root
gid = root
port = 873
hosts allow = 10.13.254.43,10.13.254.42
use chroot = true
max connections = 5
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
[test]
path = /tmp/test
comment = rsync files
ignore errors
read only = yes
auth users = rsync
secrets file = /etc/rsync.passwd
2) echo "rsync:test" > /etc/rsync.passwd
3) chmod 600 /etc/rsync.passwd
4) rsync --daemon
5) 客户端: rsync -avzP rsync@xxx.xxx.xxx.xxx::test /tmp/
以上记录下
1)默认rsync服务没有 /etc/rsyncd.conf文件 需要创建一个 并且贴入以下内容:
uid = root
gid = root
port = 873
hosts allow = 10.13.254.43,10.13.254.42
use chroot = true
max connections = 5
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
[test]
path = /tmp/test
comment = rsync files
ignore errors
read only = yes
auth users = rsync
secrets file = /etc/rsync.passwd
2) echo "rsync:test" > /etc/rsync.passwd
3) chmod 600 /etc/rsync.passwd
4) rsync --daemon
5) 客户端: rsync -avzP rsync@xxx.xxx.xxx.xxx::test /tmp/
以上记录下
相关文章推荐
- 转 Linux 下编译安装 PHP 5.6
- ASP.NET零基础课程
- 汇编题目:数字转字符,并在窗口上显示出来
- 获取顶部视图
- java需要掌握内容、核心不断更新中
- JavaScript_Console调试命令 (九个Console命令,让js调试更简单)
- Android开发之WebService介绍
- lua tutorial 07
- C语言与木马恶意代码分析和360安全防护揭秘
- BZOJ 2337: [HNOI2011]XOR和路径|期望|高斯消元
- Kmp算法的java实现
- 一切让时间说真话
- 怎样配置git ssh连接,怎样在GitHub上加入协作开发人员,怎样配置gitignore和怎样在GitHub上删除资源库.
- jquery live hover事件的替代写法
- INSERT INTO SELECT FROM 这语句怎么用
- Oracle_Alter_详解
- vim tutor学习笔记
- 文章标题
- Stanford机器学习---第一周.监督学习与梯度下降
- 云通讯SDK考察记录(2015年9月)