08 2016 档案

摘要:安装 配置环境: win7 + centos7虚拟机 安装步骤: 到http://tomcat.apache.org/下载最新的tomcat安装包(8.0.24) 移到对应的目录并解压 安装问题: 安装后需要能从win7中访问虚拟机的tomcat端口(8080),需要先进行配置 参考: http:/ 阅读全文
posted @ 2016-08-26 00:47 SailorXiao 阅读(205) 评论(0) 推荐(0) 编辑
摘要:spring boot 是什么 Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。 spring boot采用了“约定优于配置” 的理念,减少了spring繁琐的配置,方便快速搭建应用 spring boot官网:http:// 阅读全文
posted @ 2016-08-26 00:46 SailorXiao 阅读(2452) 评论(0) 推荐(0) 编辑
摘要:salt官网:http://docs.saltstack.cn/zh_CN/latest/ 安装教程: 1 安装依赖组件 参考:http://docs.saltstack.cn/zh_CN/latest/topics/installation/index.html,在类UNIX环境依赖如下: 1.1 阅读全文
posted @ 2016-08-26 00:41 SailorXiao 阅读(223) 评论(0) 推荐(0) 编辑
摘要:本文主要描述使用jedis进行redis-cluster操作 jedis jedis是redis官方推荐使用的java redis客户端,github地址为,https://github.com/xetorthio/jedis,本文使用jedis进行redis集群的操作。 jedis从2.3.0版本 阅读全文
posted @ 2016-08-26 00:40 SailorXiao 阅读(2494) 评论(0) 推荐(0) 编辑
摘要:1 集群基本操作 1.1 查看当前集群状态 使用redis-trib.rb check功能查看对应的节点的状态: 如上图所示,当前我们有三个节点7000到7002,默认总共16384个slot,平均一个节点5461个slot 或者我们也可以使用redis-cli连接上任意一个结点,执行cluster 阅读全文
posted @ 2016-08-26 00:39 SailorXiao 阅读(442) 评论(0) 推荐(0) 编辑
摘要:本文主要是在centos7上安装和配置redis集群实战 参考: http://hot66hot.iteye.com/blog/2050676 集群教程: http://redisdoc.com/topic/cluster-tutorial.html#id2 1 安装准备 1.1 下载redis3. 阅读全文
posted @ 2016-08-26 00:34 SailorXiao 阅读(453) 评论(0) 推荐(0) 编辑
摘要:1 slowlog是什么 redis的slowlog是redis用于记录记录慢查询执行时间的日志系统。由于slowlog只保存在内存中,因此slowlog的效率很高,完全不用担心会影响到redis的性能。Slowlog是Redis从2.2.12版本引入的一条命令。 2 slowlog设置 参考 ht 阅读全文
posted @ 2016-08-26 00:33 SailorXiao 阅读(21803) 评论(0) 推荐(1) 编辑
摘要:参考文档: 官网 http://zeromq.org/ http://www.cnblogs.com/rainbowzc/p/3357594.html 原理解读 zeromq只是一层针对socket的封装,介于传输层和应用层之间,并不是单独的服务或者程序,仅仅是一套组件。 zeromq使用c语言编写 阅读全文
posted @ 2016-08-26 00:25 SailorXiao 阅读(450) 评论(0) 推荐(0) 编辑
摘要:索引的定义和原理 数据库的索引,是一种将数据库中的特定数据进行排序化的数据结构,用以提高数据库的查询和变更效率。索引的实现通常使用B树或B+树。 比如,当前有一个表有100w条数据,表结构为如下 主键是用户的name。假设用户居住的城市有限(比如100个),现在,如果要查询在city=“shangh 阅读全文
posted @ 2016-08-26 00:24 SailorXiao 阅读(1162) 评论(0) 推荐(0) 编辑
摘要:集群术语 集群状态 查看集群状态: 文档 检索文档: id:默认es会生成一个22位,经过base64编码的id,是urlsafe的,当然在创建文档时,也可以指定id _source字段:里面存储了用户自定义的数据 检索部分文档:GET /sailor/user/1/_source,表示只需要_so 阅读全文
posted @ 2016-08-26 00:22 SailorXiao 阅读(768) 评论(0) 推荐(0) 编辑
摘要:参考资料 官方学习文档:https://www.elastic.co/guide/index.html 入门中文权威指南: http://es.xiaoleilu.com/ 1 认识es elasticsearch功能: 基于apache lucence,和solr比较:http://www.cnb 阅读全文
posted @ 2016-08-26 00:21 SailorXiao 阅读(324) 评论(0) 推荐(0) 编辑
摘要:参考: http://www.infoq.com/cn/articles/docker-network-and-pipework-open-source-explanation-practice http://www.oschina.net/translate/docker-network-conf 阅读全文
posted @ 2016-08-26 00:20 SailorXiao 阅读(966) 评论(0) 推荐(0) 编辑
摘要:压测工具stress: 下载: http://people.seas.harvard.edu/~apw/stress/ 编译安装: 解压 & configure & make http://people.seas.harvard.edu/~apw/stress/ 解压 & configure & m 阅读全文
posted @ 2016-08-26 00:17 SailorXiao 阅读(603) 评论(0) 推荐(0) 编辑
摘要:技术资料 docker中文官网:http://www.docker.org.cn/ 中文入门课程:http://www.docker.org.cn/book/docker.html docker学习笔记:http://www.open-open.com/lib/view/open1423703640 阅读全文
posted @ 2016-08-26 00:13 SailorXiao 阅读(475) 评论(0) 推荐(0) 编辑
摘要:参考资料 http://www.ibm.com/developerworks/cn/linux/1506_cgroup/ http://www.elmerzhang.com/2012/11/cgroups-learning-1-introduction/ http://blog.csdn.net/j 阅读全文
posted @ 2016-08-26 00:10 SailorXiao 阅读(2461) 评论(0) 推荐(0) 编辑
摘要:在windows主机安装centos虚拟机后,遇到虚拟机连接外网问题。 解决方案:http://blog.csdn.net/pang040328/article/details/12427359 经过如上操作,确认可以ping 8.8.8.8,表示虚拟机可以连接外网了。不过,ping www.bai 阅读全文
posted @ 2016-08-26 00:09 SailorXiao 阅读(10074) 评论(0) 推荐(0) 编辑
摘要:项目里面需要对mongodb的性能进行测试,看了下网上很多做法都是使用YCSB进行测试,因此开始学习使用YCSB。 参考资料: 1 安装 基于参考文档(https://github.com/brianfrankcooper/YCSB/tree/master/mongodb )安装java,mvn,y 阅读全文
posted @ 2016-08-26 00:05 SailorXiao 阅读(7494) 评论(0) 推荐(1) 编辑
摘要:1 基本概念 rabbitmq server(broker server):rabbitmq服务 client:包括producers和consumer message:包括payload和label exchange:producer发布message的地方 queue:messages存放和co 阅读全文
posted @ 2016-08-25 23:57 SailorXiao 阅读(186) 评论(0) 推荐(0) 编辑
摘要:参考资料: 官方文档:http://mesos.apache.org/documentation 中文翻译:http://mesos.mydoc.io/ GitHub:https://github.com/apache/mesos/tree/master 董的博客:http://dongxichen 阅读全文
posted @ 2016-08-19 10:55 SailorXiao 阅读(5789) 评论(0) 推荐(0) 编辑
摘要:参考 Scheduler Http Api:http://mesos.apache.org/documentation/latest/scheduler-http-api/ Java Api:http://mesos.apache.org/api/latest/java/ 任务下发流程 agent向 阅读全文
posted @ 2016-08-19 10:07 SailorXiao 阅读(1135) 评论(0) 推荐(0) 编辑