没有合适的资源?快使用搜索试试~ 我知道了~
rsync+inotify实现远程文件时时同步
需积分: 13 2 下载量 18 浏览量
2019-01-28
15:59:22
上传
评论
收藏 2KB TXT 举报
温馨提示
试读
4页
rsync+inotify实现远程文件时时同步,实现多台服务器的文件同步
资源推荐
资源详情
资源评论
第一步:安装rsync(服务端跟同步端都要装)
服务端配置(接收同步数据端,如果有多个,每个都需要装rsync )
安装
yum -y install rsync
配置文件:
vim /etc/rsyncd.conf
uid = root
gid = root
use chroot = no
max connections = 20
timeout=600
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
[tomcat]
path=/opt/www/
comment = This is a tomcat rs
ignore errors
read only = no
list = no
hosts allow = 192.168.16.0/255.255.255.0
auth users = root
secrets file = /etc/rsyncd.passwd
#vim /etc/rsyncd.passwd #创建rsync证文件
服务端配置(接收同步数据端,如果有多个,每个都需要装rsync )
安装
yum -y install rsync
配置文件:
vim /etc/rsyncd.conf
uid = root
gid = root
use chroot = no
max connections = 20
timeout=600
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
[tomcat]
path=/opt/www/
comment = This is a tomcat rs
ignore errors
read only = no
list = no
hosts allow = 192.168.16.0/255.255.255.0
auth users = root
secrets file = /etc/rsyncd.passwd
#vim /etc/rsyncd.passwd #创建rsync证文件
资源评论
周宁king
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功