上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 280 下一页
摘要: 内核版本:2.6.32-431.el6.x86_64 系统采用最小化安装,系统经过了基本优化,selinux 为关闭状态,iptables 为无限制模式 源码包存放位置:/root Rsync 客户端+Sersync 服务器(SERSYNC),承担角色 MASTER,IP:172.16.100.3, 阅读全文
posted @ 2019-08-09 15:14 樊伟胜 阅读(142) 评论(0) 推荐(0) 编辑
摘要: (1):sersync 可以记录下被监听目录中发生变化的(包括增加、删除、修改)具体某一个文件或 某一个目录的名字; (2):rsync 在同步的时候,只同步发生变化的这个文件或者这个目录(每次发生变化的数据相对 整个同步目录数据来说是很小的,rsync 在遍历查找比对文件时,速度很快),因此,效率 阅读全文
posted @ 2019-08-09 15:05 樊伟胜 阅读(189) 评论(0) 推荐(0) 编辑
摘要: [root@rsync-client-inotify ~]# ll /usr/local/bin/inotify* -rwxr-xr-x. 1 root root 38582 Jun 3 22:23 /usr/local/bin/inotifywait -rwxr-xr-x. 1 root root 阅读全文
posted @ 2019-08-09 15:03 樊伟胜 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 我们知道 rsync 可以实现推送和拉取,而 inotify-tools 借助内核的 inotify 机制实现了文件的 实时监控。因此,借助这个思路,我们可以通过使用 shell 脚本,调整 inotifywait 的输出格式, 然后借助 inotifywait 的监控文件或目录实时变化去通知 rs 阅读全文
posted @ 2019-08-09 15:03 樊伟胜 阅读(362) 评论(0) 推荐(0) 编辑
摘要: [root@rsync-client-inotify ~]# yum install make gcc gcc-c++ [root@rsync-client-inotify ~]# wget http://nchc.dl.sourceforge.net/project/inotify-tools/i 阅读全文
posted @ 2019-08-09 15:02 樊伟胜 阅读(1480) 评论(0) 推荐(0) 编辑
摘要: 强大的,细致的,异步的文件系统事件监控机制。Linux 内科从 2.6.13 起支持 inotify Inotify 实现的几款软件:Inotify,sersync,lsyncd ※Inotify 实施准备前提:rsync daemon 服务配置成功,并且客户端可以推送和拉取数据,才能够 成功配置 阅读全文
posted @ 2019-08-09 14:56 樊伟胜 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 特别强调:此步很关键,如果这不能同步,后面的 inotify 配好了也不会同步数据。 1) 分别创建待同步数据 [root@rsync-client-inotify ~]# mkdir /data/{web,web_data}/redhat.sx -p [root@rsync-client-inot 阅读全文
posted @ 2019-08-09 14:55 樊伟胜 阅读(899) 评论(0) 推荐(0) 编辑
摘要: [root@rsync-client-inotify /]# yum install rsync -y [root@rsync-client-inotify /]# echo "redhat">/etc/rsync.password [root@rsync-client-inotify /]# ch 阅读全文
posted @ 2019-08-09 14:51 樊伟胜 阅读(369) 评论(0) 推荐(0) 编辑
摘要: [root@rsync-server-1 /]# echo "/usr/bin/rsync --daemon" >> /etc/rc.local [root@rsync-server-1 /]# grep daemon /etc/rc.local # rsyncd service daemon by 阅读全文
posted @ 2019-08-09 14:46 樊伟胜 阅读(2845) 评论(0) 推荐(0) 编辑
摘要: [root@rsync-server-1 /]# lsof -i tcp:873 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME rsync 10309 root 4u IPv4 94045 0t0 TCP *:rsync (LISTEN) rs 阅读全文
posted @ 2019-08-09 14:45 樊伟胜 阅读(4158) 评论(0) 推荐(0) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 280 下一页