- Gulp入门个人总结
薰衣草smile
Gulp入门个人总结参考资料:http://www.ydcss.com/archives/18http://www.techug.com/gulphttp://www.browsersync.cn/一.安装前提条件:已安装nodeJS*所有绿色带下划线均为指令在命令行下操作选装cnpm:受国内网络影响,设在国外的npm服务器在国内访问有可能出现异常,所以可选淘宝团队构建的cnpm来代替npm指令。
- 开源大数据集群部署(十)Ranger usersync部署
大数据
- 前端开发-Browsersync 和 gulp 实现浏览器同步测试
devZhang
通常情况下,作为前端开发者,在项目中编写了一段代码后,想看看效果,需要在编辑器里保存修改的文件,然后来到浏览器打开本地文件才能看到,之后如果再做了修改,就需要手动刷新浏览器才能看到最新效果。那么,有了Browsersync和gulp的,就可以实现浏览器实时、快速的响应你的文件更改,包括html、js、css、sass、less等,并且自动刷新页面展示效果。试想一下:假设您的桌子上有pc、ipad、
- gulp构建完整项目
__摸摸头
项目结构如下:gulpfile.js文件配置如下://引入插件vargulp=require('gulp');varbrowserSync=require('browser-sync').create();varless=require('gulp-less');varjsmin=require('gulp-jsmin');varcleanCSS=require('gulp-clean-css')
- Linux云计算学习笔记day36
我要笑
sersync环境准备mkdir-p/server/{scripts,tools}tree/server/cd/server/tools/rz-Eunzipsersync_installdir_64bit.zipmkdir-p/application/mv/server/tools/sersync_installdir_64bit/sersync//application/tree/applica
- ansible
mrwangjian
老男孩教育61期--week12--系统批量管理服务(ansible)01.课程介绍部分:1)ansible软件作用概述2)ansible软件功能组成3)ansible软件安装配置(hosts配置主机清单信息)4)ansible软件应用方法(模块剧本)5)ansible自动部署服务(rsyncnfssersync)6)ansible扩展配置说明7)ansible剧本角色配置02.知识重点回顾:1)
- jquery开发 css 自动刷新预览 stylus编译
Taoquns
工具:browsersyncstylus安装browsersync安装npminstall-gbrowser-sync监听文件browser-syncstart--server--files"css/*.css"browser-syncstart--server--files"**/*.css,**/*.html"browser-syncstart--server--files"css/*.css
- day 36
斗魂_2e5d
1.实现实时传输数据的过程:软件sersync实现实时传输数据的概念1rz-y2unzip3mv4编辑软件配置文件5sersync-droocal/sersync/conf/confxml.xml如何编写sersync启动脚本sersyncdstop/start/restart编写脚本思路:第一步:如何关闭和启动服务启动sersync-dro/usr/local/sersync/conf/conf
- 开源大数据集群部署(十)Ranger usersync部署
云掣YUNCHE
开源大数据集群部署大数据
- Linux云计算之使用rsync+sersync 实现数据实时同步
学神来啦
准备工作一台装sersync、一台装rsync服务sersync服务器(数据源,源机器):192.168.1.63rsync客户端(备份端,目标机器):192.168.1.64rsync+inotify-tools与rsync+sersync架构的区别rsync+inotify-toolsinotify只能记录下被监听的目录发生了变化(增,删,改)并没有把具体是哪个文件或者哪个目录发生了变化记录下
- day 36综合架构远程管理
流云若雨
一.课程介绍部分1.远程管理服务概念介绍2.远程管理远程连接原理加密方式私钥-公钥3.远程管理登录主机方式a.基于密码登录方式b.基于秘钥登录方式4.远程管理服务配置文件5.远程服务入侵防范配置6.将批量远程管理服务部署重点综合架构中ansibenginxzabbix比较重要如何编写sersync启动脚本编写脚本思路:第一步.如何关闭和启动服务启动服务:sersync-dro/usr/local/
- rsync数据同步和sersync数据实时同步服务器
lqcbj_IT老混混
rsyncsersync服务器运维
rsync数据同步和sersync数据实时同步服务器基于三台服务器,部署数据实时同步服务器,一台作为主服务器sersync(推送数据),其余两台作为备用服务器rsync(拉取数据)。rsync数据同步环境:服务器:172.20.26.167服务器:172.20.26.198服务器:172.20.26.24实现有权限的地址可同步两台服务器均需安装有rsync服务。在172.20.26.198上检查是
- Keepalived实现nfs高可用
lqcbj_IT老混混
keepalivednfslinux运维
Keepalived实现nfs高可用Nfs_master服务器:172.20.26.167(keepalived、nfs、sersync、rsync)Nfs_salve服务器:172.20.26.198(keepalived、nfs、rsync)Nfs_client服务器:172.20.26.24(nfs)原理:两台机器上配置要一致,keepalived监控nfs进程,master上的nfs主进程
- 一键部署sersync+rsync,实现rsync服务端与sersync同步
-光光-
linuxrsync
自己设计了个小实验,一键部署sersync和rsync,实现sersync实时备份数据到rsync,把过程记录下来,以后有需要可以参考,正所谓好记性不如烂笔头。规划:管理服务器m01:172.16.1.61sersync服务器:172.16.1.31rsync服务器:172.16.1.41整个过程涉及以下几个脚本:1、fenfagongyao.sh:用秘钥认证代替密码;2、rsync_ser.sh
- 配置sersync+rsync实现实时同步环境说明
夜阑珊夭夭
linux
配置sersync+rsync实现实时同步环境说明一台装sersync二台装rsync服务Sersync服务器(数据源,源机器):9.1.101.122redhat6-7-1Rsync服务器(备份端,目标机器):9.1.101.124redhat6-7-2Rsync服务器(备份端,目标机器):9.1.101.125redhat6-7-3配置rsync服务器在9.1.101.124和9.1.101.
- sersync+rsync实现实时同步
草莓田田圈~
linuxlinux运维
目录一.基本介绍1.rsync2.sersync3.同步原理二.环境搭建1.rsync环境搭建详情[rsync搭建](https://blog.csdn.net/m0_71163619/article/details/131456472?spm=1001.2014.3001.5502)2.数据服务器安装sersync三.验证四.sersync文件详解一.基本介绍1.rsyncrsync原理配置2.
- sersync+rsync实现数据文件实时同步
时间*路人
服务器运维
目录简述rsync+sersync同步原理同步原理配置rsync服务配置Sersync服务简述rsync+sersyncrsync在同步时,只同步发生变化的文件或目录(每次发生变化的数据相对整个同步目录数据来说很小,rsync在遍历查找对比文件时,速度很快),因此效率很高sersync可以记录被监听目录中发生变化的(增,删,改)具体某个文件或目录的名字;同步原理1.在源数据服务器上开启sersyn
- sersync+rsync实时备份Linux主机的数据
KaiA8
confluencelinux服务器运维
linux的原始方案是inotify+rsync实现实时备份数据;inotify在linux内核层面监控linux下文件系统,对文件的open/access/modify等操作都会产生记录;inotify有两个缺憾:1.因设计太细致,操作一个文件会产生很多日志,与rsync结合,很容易造成多次调用rsync,长时间占用cpu资源;2.在inotify监控的目录中,操作多层级的目录结构文件时,有随机
- sersync+rsync部署与使用
阿无@_@
rsync运维linux网络rsync
实验环境:server:192.168.91.155、192.168.91.158client:192.168.91.152实验目的:把clinet指定目录()下的文件同步到server端的指定目录()主机操作系统环境:centos1.10(默认安装rsync)1、思路rsync+inotify-tools是通过自己编写脚本实现rsync的调用,而sersync是在inotify-tools的基础
- sersync+rsync原理及部署
dht91597
网络php开发工具
标签:sersync+rsync部署文档原创作品,允许转载,转载时请务必以超链接形式标明文章原始出处、作者信息和本声明。否则将追究法律责任。http://liubao0312.blog.51cto.com/2213529/1677586一、为什么要用rsync+sersync架构?1、sersync是基于inotify开发的,类似于inotify-tools的工具2、sersync可以记录下被监听
- sersync+rsync实现文件自动同步
old_GGB
运维linux
1、rsync介绍rsync是类unix系统下的数据备份工具。其首先通过对数据文件进行块划分(通常512字节为一个数据块),然后计算每一个数据块的校验码(有两个校验码:一强一弱,弱校验码用来证明不同,强校验码用来证明相同),远程主机记录每次同步后各数据块的校验码,在下次同步时进行校验码的比较,依此来实现真正的增量备份。rsync的增量同步算法原理可参考下面这篇博客,里边有很详细的介绍。rsync算
- (转)04sersync/lsync实时同步
小镇青年Jack
04sersync/lsync实时同步第1章Inotify简介Inotify是一种强大的,细粒度的,异步的文件系统事件监视机制,Linux2.6.13起加入了inotify支持,通过inotify可以监控文件系统中添加,删除,修改,移动等各种事件,利用这个内核接口,第三方软件就可以监控文件系统下文件的各种变化情况,而inotify-tools正是实施这样监控的软件,另外一个这样效果的软件是中国人周
- Linux sersync day35
静如止水yw
什么是实时同步为什么要实时同步实时同步的原理实时同步的场景实时同步工具选择实时同步案例演示一、什么是实时同步实时同步就是监控一个目录的变化,当该目录出发事件(创建/删除/修改)就执行动作,这个动作可以是rsync同步,也可以是其他。并将其同步至远程服务端。二、为什们要实时同步①能解决nfs单点故障问题②能狗让本地快速切换至云端三、实时同步原理借助一个通知接口,inotify,inotify监控本地
- rsync用法
水平号
一、Rsync基本知识Rsync的作用Rsync针对的对象是文件系统的数据,是一款可以实现增量备份的工具。配合crontab,Rsync能实现定时或间隔同步,配合inotify或sersync,可以实现触发式的实时同步。Rsync的备份原理Rsync同步的条件,是看两个指标是否满足,文件的大小和mtime(修改时间)。默认情况下,rsync使用"quickcheck"算法快速检查源文件和目标文件的
- day 35综合架构实时同步
流云若雨
课程介绍部分1.实时同步原理概念2.实现实时同步服务部署inotify3.实现实时同步方式a利用脚本实现实时同步b利用软件实现实时同步sersynclsync(补充扩展)课程总结一:网站实时同步服务数据备份方法:1.定时任务备份数据:内部人员备份数据备份数据最短周期是1分钟2.实时同步备份数据:外部人员备份数据(用户)没有同步等待时间实时同步数据原理:01.监视存储服务器上指定目录数据信息变化in
- 多浏览器书签云同步,手机浏览器也同步
代码调试
xBrowserSync效率
多浏览器书签云同步,手机浏览器也同步安装与设置(先看注意事项!!)下载地址(国内,但要关注公众号)https://www.extfans.com/productivity/lcbjdhceifofjlpecfpeimnnphbcjgnc/download/官网https://www.xbrowsersync.org谷歌Chrome在Chrome中,首先整理好您的书签,删除不需要的书签。禁用Chro
- sersync+rsync原理及部署 实时同步
SkTj
一、为什么要用rsync+sersync架构?1、sersync是基于inotify开发的,类似于inotify-tools的工具2、sersync可以记录下被监听目录中发生变化的(包括增加、删除、修改)具体某一个文件或者某一个目录的名字,然后使用rsync同步的时候,只同步发生变化的文件或者目录二、rsync+inotify-tools与rsync+sersync架构的区别?1、rsync+in
- Ranger-usersync安装失败
纪念品商店
ambari部署问题大数据ambari
问题1:Credentialranger.usersync.policymgr.passwordhasNOTbeencreated.Mkdirsfailedtocreatefile:/usr/hdp/current/ranger-usersync/conf(exists=false,cwd=file:/var/lib/ambari-agent)详细报错:TaskLog:stderr:Traceba
- chrome添加书签同步插件
wnfee
工具插件chrome书签同步
chorme添加书签同步插件一.bookmark(不推荐)1.添加书签插件到浏览器2.github添加repo仓库3.设置个人token4.书签同步二.SyncBookmarks(不推荐)2.1登录三.码云同步(有点麻烦,不推荐)四.`xBrowserSync`插件(简单好用,推荐)一.bookmark(不推荐)1.添加书签插件到浏览器这里推荐一款好用的Chrome插件:书签同步https://c
- day 39 sersync服务
淡然_a58f
一、准备环境(一)在backup服务端1.创建nfsbackup模块[root@backup~]#mkdir/nfsbackup[root@backup~]#chownrsync.rsync/nfsbackup[root@backup~]#ll/nfsbackup-ddrwxr-xr-x2rsyncrsync6May2517:14/nfsbackup2.配置rsync文件[root@backup~
- Algorithm
香水浓
javaAlgorithm
冒泡排序
public static void sort(Integer[] param) {
for (int i = param.length - 1; i > 0; i--) {
for (int j = 0; j < i; j++) {
int current = param[j];
int next = param[j + 1];
- mongoDB 复杂查询表达式
开窍的石头
mongodb
1:count
Pg: db.user.find().count();
统计多少条数据
2:不等于$ne
Pg: db.user.find({_id:{$ne:3}},{name:1,sex:1,_id:0});
查询id不等于3的数据。
3:大于$gt $gte(大于等于)
&n
- Jboss Java heap space异常解决方法, jboss OutOfMemoryError : PermGen space
0624chenhong
jvmjboss
转自
http://blog.csdn.net/zou274/article/details/5552630
解决办法:
window->preferences->java->installed jres->edit jre
把default vm arguments 的参数设为-Xms64m -Xmx512m
----------------
- 文件上传 下载 解析 相对路径
不懂事的小屁孩
文件上传
有点坑吧,弄这么一个简单的东西弄了一天多,身边还有大神指导着,网上各种百度着。
下面总结一下遇到的问题:
文件上传,在页面上传的时候,不要想着去操作绝对路径,浏览器会对客户端的信息进行保护,避免用户信息收到攻击。
在上传图片,或者文件时,使用form表单来操作。
前台通过form表单传输一个流到后台,而不是ajax传递参数到后台,代码如下:
<form action=&
- 怎么实现qq空间批量点赞
换个号韩国红果果
qq
纯粹为了好玩!!
逻辑很简单
1 打开浏览器console;输入以下代码。
先上添加赞的代码
var tools={};
//添加所有赞
function init(){
document.body.scrollTop=10000;
setTimeout(function(){document.body.scrollTop=0;},2000);//加
- 判断是否为中文
灵静志远
中文
方法一:
public class Zhidao {
public static void main(String args[]) {
String s = "sdf灭礌 kjl d{';\fdsjlk是";
int n=0;
for(int i=0; i<s.length(); i++) {
n = (int)s.charAt(i);
if((
- 一个电话面试后总结
a-john
面试
今天,接了一个电话面试,对于还是初学者的我来说,紧张了半天。
面试的问题分了层次,对于一类问题,由简到难。自己觉得回答不好的地方作了一下总结:
在谈到集合类的时候,举几个常用的集合类,想都没想,直接说了list,map。
然后对list和map分别举几个类型:
list方面:ArrayList,LinkedList。在谈到他们的区别时,愣住了
- MSSQL中Escape转义的使用
aijuans
MSSQL
IF OBJECT_ID('tempdb..#ABC') is not null
drop table tempdb..#ABC
create table #ABC
(
PATHNAME NVARCHAR(50)
)
insert into #ABC
SELECT N'/ABCDEFGHI'
UNION ALL SELECT N'/ABCDGAFGASASSDFA'
UNION ALL
- 一个简单的存储过程
asialee
mysql存储过程构造数据批量插入
今天要批量的生成一批测试数据,其中中间有部分数据是变化的,本来想写个程序来生成的,后来想到存储过程就可以搞定,所以随手写了一个,记录在此:
DELIMITER $$
DROP PROCEDURE IF EXISTS inse
- annot convert from HomeFragment_1 to Fragment
百合不是茶
android导包错误
创建了几个类继承Fragment, 需要将创建的类存储在ArrayList<Fragment>中; 出现不能将new 出来的对象放到队列中,原因很简单;
创建类时引入包是:import android.app.Fragment;
创建队列和对象时使用的包是:import android.support.v4.ap
- Weblogic10两种修改端口的方法
bijian1013
weblogic端口号配置管理config.xml
一.进入控制台进行修改 1.进入控制台: http://127.0.0.1:7001/console 2.展开左边树菜单 域结构->环境->服务器-->点击AdminServer(管理) &
- mysql 操作指令
征客丶
mysql
一、连接mysql
进入 mysql 的安装目录;
$ bin/mysql -p [host IP 如果是登录本地的mysql 可以不写 -p 直接 -u] -u [userName] -p
输入密码,回车,接连;
二、权限操作[如果你很了解mysql数据库后,你可以直接去修改系统表,然后用 mysql> flush privileges; 指令让权限生效]
1、赋权
mys
- 【Hive一】Hive入门
bit1129
hive
Hive安装与配置
Hive的运行需要依赖于Hadoop,因此需要首先安装Hadoop2.5.2,并且Hive的启动前需要首先启动Hadoop。
Hive安装和配置的步骤
1. 从如下地址下载Hive0.14.0
http://mirror.bit.edu.cn/apache/hive/
2.解压hive,在系统变
- ajax 三种提交请求的方法
BlueSkator
Ajaxjqery
1、ajax 提交请求
$.ajax({
type:"post",
url : "${ctx}/front/Hotel/getAllHotelByAjax.do",
dataType : "json",
success : function(result) {
try {
for(v
- mongodb开发环境下的搭建入门
braveCS
运维
linux下安装mongodb
1)官网下载mongodb-linux-x86_64-rhel62-3.0.4.gz
2)linux 解压
gzip -d mongodb-linux-x86_64-rhel62-3.0.4.gz;
mv mongodb-linux-x86_64-rhel62-3.0.4 mongodb-linux-x86_64-rhel62-
- 编程之美-最短摘要的生成
bylijinnan
java数据结构算法编程之美
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
public class ShortestAbstract {
/**
* 编程之美 最短摘要的生成
* 扫描过程始终保持一个[pBegin,pEnd]的range,初始化确保[pBegin,pEnd]的ran
- json数据解析及typeof
chengxuyuancsdn
jstypeofjson解析
// json格式
var people='{"authors": [{"firstName": "AAA","lastName": "BBB"},'
+' {"firstName": "CCC&
- 流程系统设计的层次和目标
comsci
设计模式数据结构sql框架脚本
流程系统设计的层次和目标
 
- RMAN List和report 命令
daizj
oraclelistreportrman
LIST 命令
使用RMAN LIST 命令显示有关资料档案库中记录的备份集、代理副本和映像副本的
信息。使用此命令可列出:
• RMAN 资料档案库中状态不是AVAILABLE 的备份和副本
• 可用的且可以用于还原操作的数据文件备份和副本
• 备份集和副本,其中包含指定数据文件列表或指定表空间的备份
• 包含指定名称或范围的所有归档日志备份的备份集和副本
• 由标记、完成时间、可
- 二叉树:红黑树
dieslrae
二叉树
红黑树是一种自平衡的二叉树,它的查找,插入,删除操作时间复杂度皆为O(logN),不会出现普通二叉搜索树在最差情况时时间复杂度会变为O(N)的问题.
红黑树必须遵循红黑规则,规则如下
1、每个节点不是红就是黑。 2、根总是黑的 &
- C语言homework3,7个小题目的代码
dcj3sjt126com
c
1、打印100以内的所有奇数。
# include <stdio.h>
int main(void)
{
int i;
for (i=1; i<=100; i++)
{
if (i%2 != 0)
printf("%d ", i);
}
return 0;
}
2、从键盘上输入10个整数,
- 自定义按钮, 图片在上, 文字在下, 居中显示
dcj3sjt126com
自定义
#import <UIKit/UIKit.h>
@interface MyButton : UIButton
-(void)setFrame:(CGRect)frame ImageName:(NSString*)imageName Target:(id)target Action:(SEL)action Title:(NSString*)title Font:(CGFloa
- MySQL查询语句练习题,测试足够用了
flyvszhb
sqlmysql
http://blog.sina.com.cn/s/blog_767d65530101861c.html
1.创建student和score表
CREATE TABLE student (
id INT(10) NOT NULL UNIQUE PRIMARY KEY ,
name VARCHAR
- 转:MyBatis Generator 详解
happyqing
mybatis
MyBatis Generator 详解
http://blog.csdn.net/isea533/article/details/42102297
MyBatis Generator详解
http://git.oschina.net/free/Mybatis_Utils/blob/master/MybatisGeneator/MybatisGeneator.
- 让程序员少走弯路的14个忠告
jingjing0907
工作计划学习
无论是谁,在刚进入某个领域之时,有再大的雄心壮志也敌不过眼前的迷茫:不知道应该怎么做,不知道应该做什么。下面是一名软件开发人员所学到的经验,希望能对大家有所帮助
1.不要害怕在工作中学习。
只要有电脑,就可以通过电子阅读器阅读报纸和大多数书籍。如果你只是做好自己的本职工作以及分配的任务,那是学不到很多东西的。如果你盲目地要求更多的工作,也是不可能提升自己的。放
- nginx和NetScaler区别
流浪鱼
nginx
NetScaler是一个完整的包含操作系统和应用交付功能的产品,Nginx并不包含操作系统,在处理连接方面,需要依赖于操作系统,所以在并发连接数方面和防DoS攻击方面,Nginx不具备优势。
2.易用性方面差别也比较大。Nginx对管理员的水平要求比较高,参数比较多,不确定性给运营带来隐患。在NetScaler常见的配置如健康检查,HA等,在Nginx上的配置的实现相对复杂。
3.策略灵活度方
- 第11章 动画效果(下)
onestopweb
动画
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
- FAQ - SAP BW BO roadmap
blueoxygen
BOBW
http://www.sdn.sap.com/irj/boc/business-objects-for-sap-faq
Besides, I care that how to integrate tightly.
By the way, for BW consultants, please just focus on Query Designer which i
- 关于java堆内存溢出的几种情况
tomcat_oracle
javajvmjdkthread
【情况一】:
java.lang.OutOfMemoryError: Java heap space:这种是java堆内存不够,一个原因是真不够,另一个原因是程序中有死循环; 如果是java堆内存不够的话,可以通过调整JVM下面的配置来解决: <jvm-arg>-Xms3062m</jvm-arg> <jvm-arg>-Xmx
- Manifest.permission_group权限组
阿尔萨斯
Permission
结构
继承关系
public static final class Manifest.permission_group extends Object
java.lang.Object
android. Manifest.permission_group 常量
ACCOUNTS 直接通过统计管理器访问管理的统计
COST_MONEY可以用来让用户花钱但不需要通过与他们直接牵涉的权限
D