linux 配置 rsync 服务
来源:互联网 发布:淘宝摄影服务招商 编辑:程序博客网 时间:2024/05/21 13:21
1、安装rsync 服务
执行命令:yum -y install rsync
2、启动服务:
执行命令:vi /etc/xinetd.d/rsync
修改为:
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = –daemon
log_on_failure += USERID
}
3、vi /etc/rsyncd.conf
内容如下:
uid = nobody
gid = nobody
use chroot = no
#客户端最大连接数
max connections = 4
#PID及LOCK文件位置
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
#日志文件位置
log file = /var/log/rsyncd.log
#设置可以镜像的目录及相关#认证的模块名,在client端需要指定
[webapploan]
#可以镜像的目录
path = /web/loan
#对用途的说明
comment = webappcomment
#服务器上的目录及文件可写
read only = true
list = false
#允许进行rsync的客户端网段或IP
#hosts allow=192.168.200.0/24,外地IP地址
hosts allow=192.18.1.207 192.18.1.208
退出保存文件。
4、重启服务
执行命令: /usr/bin/rsync --daemon
5、客户端运行的脚步:
[root@Test01-DAIQIAN-AP01 web]# cat rsync_loan.sh
rsync -vzrtopg --progress --exclude "WEB-INF/classes/auth-client.xml" --exclude "WEB-INF/classes/spring-base.xml" root@172.18.100.208::webapploan /web/loan
- Linux Rsync 服务配置
- linux 配置 rsync 服务
- linux 安装配置 rsync服务
- linux rsync服务配置使用实例
- Linux rsync服务配置及使用
- rsync服务搭建配置
- rsync服务配置
- rsync 服务配置
- rsync服务安装和配置
- ubuntu下配置rsync服务
- rsync服务安装和配置
- LINUX RSYNC配置详解
- linux配置ssh+rsync
- linux配置ssh+rsync
- linux下rsync配置
- linux rsync安装配置
- Linux下Rsync服务部署
- linux--rsync--rsync安装、配置、实例
- 第三篇:uCOS-II 任务的创建,挂起,恢复,删除
- 追逐自己的梦想----------辅助制作第九课:分析怪物列表及怪物属性的封装等
- 十九、运算符重载(三)String类的改进实现、[]运算符重载、+运算符重载、+=运算符重载、<<运算符重载、>>运算符重载
- java基础---面向对象
- 天声人語 20150110
- linux 配置 rsync 服务
- 【2015-1】【组合计数】12.28 bigraph
- 第五章 树和二叉树知识导图
- shell脚本消耗机器的CPU实例
- 动态创建gridpanel
- 日经春秋 20150110
- C/C++中extern关键字详解
- 《数据结构》课程设计报告
- 日经社説 20150110 原油安を反映しない補正予算