- 博客(477)
- 资源 (19)
- 问答 (1)
- 收藏
- 关注
原创 Salt安装与基本操作
1 rpm centos中的安装包格式 ,相当于windows中的exe文件2 yum是centos中方便的rpm仓库以及提供方便的安装方法,不但可以安装而且可以安装相应的依赖3 /etc/yum.conf 是yum源的配置文件4 /etc/yum.repo.d/xx.repo是yum源的仓库,安装文件的时候会根据配置下载安装包和相应的依赖包,然后安装5 epel,安装后会...
2018-10-09 16:19:36 1337
原创 正则使用点滴
1 正则(\w-*\.*)使用-知识点* 和括号(\w-*\.*) 小括号是指匹配的字符串组,可以直接获取出来\w 匹配字母、数字、下划线。等价于'[A-Za-z0-9_]'*匹配前面的子表达式零次或多次。例如,zo* 能匹配 "z" 以及 "zoo"。* 等价于{0,}。这里 \w-* 指的是 字母、数字、下划线开头 加“横线”匹配0或多次 横线,即可以直接匹配,如:...
2018-09-12 16:53:07 202
原创 mysql功能测试
一、变量的定义 第一种用法:set @num=1; 或set @num:=1; //这里要使用变量来保存数据,直接使用@num变量 第二种用法:select @num:=1; 或 select @num:=字段名 from 表名 where …… 如: 1)set @t_error=0; select @t_error ; 2)select @num:=`name` ...
2018-04-28 17:19:23 455
原创 Centos7安装Ambari
上一篇: centos7的安装: http://username2.iteye.com/admin/blogs/239032310、Ambari安装: https://ambari.apache.org/ http://www.infocool.net/kb/OtherCloud/201611/214644.html Ambari-2.4.1.0 压缩包地址...
2018-04-28 17:01:26 219
原创 字符串-字符-二进制关系
用一个实例来说明汉字如何转换为对应的字节。中文编码是UNIQUE编码,即2个字节标识一个汉字; 如:我 = byte[] bs3 =new byte[]{-50,-46} = GBK编码10进制为52946。 如:String str2 = "我";byte[] bs2 = str2.getBytes("gbk");我用gbk编码后的字节为:byte[] ...
2018-04-26 13:35:28 1108
原创 Js的一些问题
alert(2&&5) 5alert(0&&5) 0alert(5&&0) 0alert(1||5) 1alert(0||5) 5a=值1||值2 如果值1为真,将值1赋给变量,如果为假,将值2赋给变量alert(Number('12px')); NaNalert(NaN==NaN); falsealert(typeof NaN) nu...
2018-04-21 12:26:43 121
原创 架构中的关键词
缓存,限流,降级1、Hystrix:隔离、降级、熔断2、限流:nginx流量限制模块,lua+redis,RateLimiter,降级:3、配置中心:Diamond、Disconf、Consul等 4、nginx:Keepalived做高可用5、twemproxy:redis代理服务器,和mysql proxy对mysql的功能相同6、Wireshark:抓取...
2018-03-12 17:34:59 252
原创 Dock的使用记录
企业应用架构模式企业批量购书分享 关注商品举报企业应用架构模式 [Patterns of Enterprise Application Architecture] 程序员 技术讨论会 的各种PPT #systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.s...
2018-02-07 16:28:08 234
原创 github上wiki书写
gollum说明文档:https://github.com/gollum/gollum 1 安装jrubyhttp://jruby.org/download 2 jruby解压到响应的目录如:D:\Program Files\jruby-9.1.13.03 讲bin目录添加到环境变量path中4 执行命令:jruby -v,有版本号出现则安装成功5 执行...
2018-02-07 16:27:12 1115
原创 sublime3
http://www.cnblogs.com/bananaplan/p/Sublime-Text-3-Powerful.htmlhttp://blog.csdn.net/cywosp/article/details/31791881 快捷键:1、Ctrl+Shift+P插件安装2、Ctrl+P模糊搜索文件3、Ctrl+R查找函数方法定位到行,Ctrl+G查找标识...
2018-02-07 16:22:16 94
原创 GIT使用记录
git https://segmentfault.com/a/1190000002951154git异常ssl权限问题:git config --global http.sslVerify false git工作流程: git有三个工作数,即工作目录 1)本地工作目录,它持有实际文件 2)暂存区域,像一个缓存区域,保存你的改动3)HEAD区域,指向你最后一...
2018-02-07 16:12:44 117
原创 ceph安装
文档地址:http://docs.ceph.org.cn/start/quick-ceph-deploy/文档:http://blog.csdn.net/younger_china/article/details/51823571 安装 CEPH 部署工具 1 安装yum的一些插件:sudo yum install -y yum-utils &&am...
2018-02-07 16:07:18 620
原创 MYSQL基础学习
mysql命令行情况下的操作 一、变量的定义第一种用法:set @num=1; 或set @num:=1; //这里要使用变量来保存数据,直接使用@num变量第二种用法:select @num:=1; 或 select @num:=字段名 from 表名 where ……如:1)set @t_error=0; select @t_error ;2)select @n...
2017-12-01 18:48:18 186
原创 删除日志
删除日志文件#!/bin/bashlogpath="/data/apache-tomcat-7.0.64/logs"count=`find /data/apache-tomcat-7.0.64/logs -name "*.log" -o -name "*.txt" -type f -mtime +3 | wc -l`echo "$count";if [ "$co...
2017-08-23 09:58:39 147
原创 centos7的安装与问题处理
1 解决用户不是sudo用户的权限问题: vi /etc/sudoers //找到如下一行,在下面添加即可 ..... root ALL=(ALL) ALL test ALL=(ALL) ALL //这一行是添加的2 :systemctl set-default multi-user.target 命令,...
2017-08-18 17:57:48 165
原创 一些团队管理工具
1 SVN服务器2 Nexus搭建Maven私服3 禅道系统4 所有服务器linux系统5 redis能搭建的话,先搭建一个单点6 mysql的开发服务器 7 文档接口管理系统:http://thx.github.io/RAP/8 jenkins自动化部署工具 9 接口管理文档 Swagger2...
2017-05-22 09:36:21 160
原创 Jstack查找线程运行问题
1 Jstack是JVM自带的可以查看线程运行情况的工具,线程死锁, 以及拿到线程dump来排查线程情况的工具。 当服务器上的cpu占用过大1) top命令查看cpu占用过大的的进程2) top -Hp pid ,查看这个pid下面所有线程占用cpu的情况3)jstack -F 线程pid 拿到这个线程的堆栈情况,可以找到有个线程中有我们自己的包或类4)分析这个线程状态...
2017-04-18 15:51:53 284
原创 压力测试工具WRK
工程启动设置:java -Xmx4g -Xms4g -jar *.jar 测试的时候 执行:./wrk -t 5 -c100 -d 6 --latency -T 40 http://192.168.1.206:8004/qixiangControler/queryData?currentPage=1 针对每个case使用5个线程,以及100、200、...
2017-02-09 19:44:18 571
原创 线程所机制的说明
http://ifeve.com/java-7-concurrency-cookbook/ 1 线程工厂类的使用2 ThreadGroup来管理一组线程 3 中断的处理调用 interrupt 来设置线程中断状态isInterrupted 来查询调用者线程中断状态,是否中断,使用子方法不会清楚已经设置的中断状态interrupted 静态方法,查询当前线程的中断...
2017-02-09 19:36:31 124
原创 Spark中几个重要名词
spark几个名词1 job,一个action操作触发一个job action的一些操作http://spark.apache.org/docs/latest/programming-guide.html#actions 2 stage划分 1)有shuffle操作,则shuffle之前为一个 stage 2)数据落地输出则为一个 stage 3 Ta...
2017-02-09 19:30:16 321
原创 idea几个快捷键
ctrl+E 打开最近访问的文件Double Shift 文件搜索ctrl + Shift+Enter 不全分号 Ctrl+Shift+A 找到Load Rest ClientCtrl+Shift+V 粘贴板历史Alt+Enter Language Injection json转译编辑器 ideahttp://blog.csdn.net...
2017-01-09 09:57:53 93
原创 Long与字节 的转换
Long为8个字节,每个字节是8位,则其长度为64位 。字节为单字节,长度为8位。 1 在内存中如果一个长整形的数字,强制转换为字节,则会舍弃掉高56位,保留低8位数字。2 如果一个字节转换为一个长整形,需要补充高56位,因为java是补码表示形式,补充的56位全都是1,使最终的数据错误3 如何解决高位补充导致的数据错误,则需要把高56位数变成0即可,所以采用“与0x...
2016-12-29 14:13:11 1691
原创 面试题解析记载
工具类源码 hashcode: 在创建类的时候要覆盖equal 和 hash 方法 ArrayList :基础数组来实现的,遍历查找快,但是删除需要移动数组数据,处理会慢。LinkedList :实现原理通过链表实现,插入快,查找和删除慢。HashMap:非线程安全的,通过链表实现的,查找速度回快很多,通过key取Hash直接找到数据值的位置,如果数据Hash...
2016-12-24 18:16:01 133
原创 JAVA 内存管理
垃圾回收机制:java内存包括堆、栈、元数据区栈:线程工作的地方元数据区:存放加载的Class以及一些元数据的信息。 堆分代说明:堆:分为新生代、年老代(存放存活时间比较长的对象)新生代分为 E区、S1区、S2区 新生代:年老代=1:2 即新生代为堆的1/3 , 年老代为总内存的2/3(可以通过 –XX:NewRatio ) 新生代的比...
2016-12-24 18:13:52 92
原创 hashCode与equals
hashcode方法返回该对象的哈希码值,通常用在一些hash集合的处理中,用来存放散列对象。 几个原则:equals相等 hashcode必须相等在集合中对象的对比中,hashcode不等则两个对象一定不等重写equals 则必须重写hashcode,以保证 对象放在HashTable中的时候,首先会查找对象的Hashcode,如果地址中有相应的数据,则...
2016-11-30 15:38:33 81
原创 Mysql执行计划分析
Mysql执行计划分析: MySQL执行计划EXPLAIN主要可以通过type来进行分析: select_type 表示查询中每个select子句的类型(简单 OR复杂) a.SIMPLE:查询中不包含子查询或者UNION b.查询中若包含任何复杂的子部分,最外层查询则被标记为:PRIMARY c.在SELECT或WHERE列表中包含了子查询,该...
2016-11-30 12:53:04 105
原创 StringUtils
字符串工具类: package com.jusfoun.dandelion.platform.common.util;import java.util.ArrayList;import java.util.Arrays;import java.util.List;/** * 字符串工具类 * @author admin * */pub...
2016-11-25 14:55:00 84
原创 linux常用命令
# uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计算机名 # lspci -tv # 列出所有PCI设备 # lsusb -tv # 列出所有USB设备 # lsmod # 列出加载的内核模块 # e...
2016-09-01 14:44:16 84
原创 python常用包和函数
import os当前目录:os.getcwd() import getpass当前操作用户:getpass.getuser() from datetime import datetime datetime.now() , datetime.datetime(2016, 8, 25, 15, 34, 12, 589632) str(date...
2016-08-25 14:57:38 325
原创 python生成器和迭代器
1 for 迭代器,迭代器遇到StopIteration会结束2 生成器 包含yield语句的函数会被特地编译成生成器 ,当函数被调用时,他们返回一个生成器对象,这个对象支持迭代器接口, 一次只产生一个对象,效率更佳 #!/usr/bin/python# _*_ coding: UTF-8 _*_#for 迭代器,迭代器遇到StopIteration会结束de...
2016-08-25 11:00:15 86
原创 python类和类关键字的理解
1 类中的方法第一个参数为self,它表示当前的类的对象1 类的属性和对象属性 类中用两个下划线开始的标识 私有属性或方法 1)类属性,在类中直接声明的变量,变量可以直接用类名称调用 Student.cName 2)self开头的变量属于对象属性或实例属性,变量属于实例所有 2 @property ,@birth.setter @staticmethod @...
2016-08-25 10:59:43 393
原创 python包导入记录
解决问题方面了解import1.如果导入的模块和主程序在同个目录下,直接import就行了2.如果导入的模块是在主程序所在目录的子目录下,可以在子目录中增加一个空白的__init__.py文件,该文件使得python解释器将子目录整个也当成一个模块,然后直接通过“import 子目录.模块”导入即可。3.如果导入的模块是在主程序所在目录的父目录下,则要通过修改path来解决...
2016-08-23 11:48:18 119
原创 正则表达式
正则表达式使用: 常用规则: 一、常用特殊字符:$ 匹配输入字符串的结尾位置。如果设置了 RegExp 对象的 Multiline 属性,则 $ 也匹配 ‘\n' 或 ‘\r'。要匹配 $ 字符本身,请使用 \$。( ) 标记一个子表达式的开始和结束位置。子表达式可以获取供以后使用。要匹配这些字符,请使用 \( 和 \)。* 匹配前面的子表达式零次或多次。要匹...
2016-08-20 18:26:09 130
原创 python常用函数
一、数学相关1、绝对值:abs(-1)2、最大最小值:max([1,2,3])、min([1,2,3])3、序列长度:len('abc')、len([1,2,3])、len((1,2,3))4、取模:divmod(5,2)//(2,1)5、乘方:pow(2,3,4)//2**3/46、浮点数:round(1)//1.0二、功能相关1、函数是否可调用:cal...
2016-08-20 11:00:55 94
原创 Spark基础实例
spark 操作的几个步骤1 数据关联 textFile 和 parallelize2 转换操作(JavaRDD和JavaPairRDD他们可以通过mapToPair and flatMapToPair转换) 3 action操作,获取数据结果 一、wordcount的例子 //单词统计 public static void wordCount(...
2016-07-15 17:38:57 187
原创 Spark
一、Spark SQL定义:Spark的一个针对结构化数据操作的一个模块 作用: 1 用SQL或者DataFrame进行结构化数据处理在Spark的程序中 2 可以处理任何数据源包括:Hive,Parquet,ORC,json, 和jdbc,甚至可以将这些数据进行join操作 3 对于Hive中已经存在的数据进行查询和UDF的处理 4 可以进行JDBC连接进...
2016-07-08 18:19:43 91
原创 Shell 基础
一、1 if语句使用 注意a=1 #等号两边不能有空格b=1if [ $a -eq $b ];then #if后面要有空格 中括号两边最好留空格否则可能会报错 echo 11111111110 $a #字符串变量连接处理 fi 二、 中括号内,数值判断 [ INT1 -eq INT2 ] INT1和INT2两数相等返回为真 ,...
2016-06-15 17:37:14 87
原创 Shell 执行java程序
#!/bin/bashjava -Xms1g -Xmx1g -Xss250k -XX:NewRatio=4 -XX:SurvivorRatio=4 -XX:MaxPermSize=16m -XX:MaxTenuringThreshold=0 -cp logAnalyze-0.0.1-jar-with-dependencies.jar com.jusfoun.bi...
2016-06-14 17:16:23 452
power designer 15破解文件
2012-11-23
jquery-validation 校验框架
2012-06-04
WebLogicServer11gCluster_SingleMachine.rar
2011-10-11
Expert One-on-One J2EE Design and Development
2011-10-11
overflow 溢出部分不隐藏
2013-07-22
TA创建的收藏夹 TA关注的收藏夹
TA关注的人