一、替换文本: ##1 sed -i 's/disabled=true/disabled=false/' /etc/fdfs/storage.conf ##2 sed -i 's/base_path=\/home\/yuqing\/fastdfs/base_path=\/fdfs\/storage/
                            
                            
                                分类:
系统相关   时间:
2016-03-05 16:13:31   
                                阅读次数:
280
                             
                    
                        
                            
                            
                                1.1.架构规划 1.1.1架构规划准备 服务器系统 角色 IP Centos6.7 x86_64 NFS服务器端(NFS-server-inotify-tools) 192.168.1.14 Centos6.7 x86_64 rsync服务器端(rsync热备服务器) 192.168.1.17 1
                            
                            
                                分类:
其他好文   时间:
2016-03-05 00:03:01   
                                阅读次数:
546
                             
                    
                        
                            
                            
                                最近线下BI准备要做数据仓库,需要线上的日志,现在线上的日志是NFS挂载过来的,二次挂载没成功,所以考虑用rsync来做。 1、检查是否安装了rsync [root@bi-1 opt]# rpm -qa | grep rsync rsync-3.1.1-1.el6.rfx.x86_64 2、在sla
                            
                            
                                分类:
其他好文   时间:
2016-02-29 14:37:26   
                                阅读次数:
277
                             
                    
                        
                            
                            
                                利用inotifywait监控主机文件和目录 inotifywait 是一个可以实时监控文件变动的工具,它利用linux内核中的inotify机制实现监控功能。 查看内核版本 [root@Oracle ~]# uname -r 2.6.32-220.el6.i686 安装inotify-tools
                            
                            
                                分类:
其他好文   时间:
2016-02-27 00:55:08   
                                阅读次数:
225
                             
                    
                        
                            
                            
                                rsync+inotify自动备份服务器的配置1备份服务器IP:192.168.1.106客户端IP:192.168.1.1072.#yum-yinstallrsyncxinetdgccgcc-c++安装这两个服务,同时也将C/C++编译器也安上(如果事先没安的话,避免我们在编译二进制文件时找不到编译器的情况)3.在服务器端(192.168.1.106)的/etc下..
                            
                            
                                分类:
其他好文   时间:
2016-02-26 10:35:56   
                                阅读次数:
152
                             
                    
                        
                            
                            
                                (英文部分为转的。代码是个人代码) 1 What’s inotify The inotify API provides a mechanism for monitoring file system events. Inotify can be used to monitor individual f
                            
                            
                                分类:
系统相关   时间:
2016-02-18 21:29:05   
                                阅读次数:
332
                             
                    
                        
                            
                            
                                Sersync实现触发式文件同步 替代inotify和rsync 参考文章 http://blog.chinaunix.net/uid-20639775-id-3011124.html http://www.apelearn.com/bbs/forum.php?mod=viewthread&tid=
                            
                            
                                分类:
其他好文   时间:
2016-02-14 00:24:06   
                                阅读次数:
225
                             
                    
                        
                            
                            
                                rsync + inotify 实现集群文件同步,搭建线上测试环境,构建安全的测试、发布环境
                            
                            
                                分类:
其他好文   时间:
2016-02-01 20:57:01   
                                阅读次数:
125
                             
                    
                        
                            
                            
                                前言:本文章转自我的个人博客http://www.anyisalin.com欢迎大家访问Rsync+Inotify+LVS实现WebService的负载均衡实验环境:系统:CentOS6.7服务:LVS类型:DR模型机器:LVS-Director:DIP:deveth0172.16.100.2/24GW:172.16.100.254VIP:deveth0:0172.16.100.1/24GW:172.16.100.254LVS-R..
                            
                            
                                分类:
Web程序   时间:
2016-01-23 18:44:15   
                                阅读次数:
207
                             
                    
                        
                            
                            
                                1、启动FastDFStracker: /usr/local/bin/fdfs_trackered %FastDFS%/tracker.conf
storage: /usr/local/bin/fdfs_storaged %FastDFS%/storage.conf也可以简写为:tracker: fdfs_trackered %FastDFS%/tracker.conf
storage: fdfs_...
                            
                            
                                分类:
其他好文   时间:
2016-01-22 18:14:05   
                                阅读次数:
134