2016年3月28日

activemq 使用

摘要: (5)使用相同的“clientID”,则认为是同一个消费者。两个程序使用相同的“clientID”,则同时只能有一个连接到activemq,第二个连接的会报错。(6)activemq的设置在conf/activemq.xml中,默认消息是保存在data/kahadb中,重启activemq消息不会丢 阅读全文

posted @ 2016-03-28 19:42 empireghost 阅读(267) 评论(0) 推荐(0) 编辑

2016年2月25日

elasticsearch plugin

摘要: bin/plugin -install de.spinscale/elasticsearch-plugin-suggest/0.90.5-0.9plugin -install mobz/elasticsearch-headplugin install lukas-vlcek/bigdeskbin/p 阅读全文

posted @ 2016-02-25 17:43 empireghost 阅读(222) 评论(0) 推荐(0) 编辑

2015年7月1日

logback.xml 实例

摘要: 1 2 3 4 5 6 7 8 9 %date{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level-%logger{5} - %msg%n10 11 ... 阅读全文

posted @ 2015-07-01 15:36 empireghost 阅读(2011) 评论(0) 推荐(0) 编辑

2015年4月3日

Intellij IDEA 插件

摘要: Maven Helper Apache ToString Equals Hashcode Guava ToString Equals Hashcode InnerBuilder Findbugs Scala dirname $0cd `dirname $0`echo '停止服务'ps -ef |gr 阅读全文

posted @ 2015-04-03 19:47 empireghost 阅读(258) 评论(0) 推荐(0) 编辑

2014年9月1日

redis集群

摘要: ... 阅读全文

posted @ 2014-09-01 14:45 empireghost 阅读(149) 评论(0) 推荐(0) 编辑

2014年8月28日

Open Message Queue 集群问题

摘要: nohup ./imqbrokerd -tty -name myBroker -port 7677 -javahome /opt/omae/jdk1.7.0_45 -cluster 192.168.27.160:7677,192.168.27.161:7677 -Dimq.cluster.maste... 阅读全文

posted @ 2014-08-28 14:31 empireghost 阅读(433) 评论(0) 推荐(0) 编辑

2014年8月27日

mysql

摘要: 核心原则•尽量不在数据库做运算• 控制单表数据量• 保持表身段苗条• 平衡范式不冗余• 拒绝3B字段•用好数值字段类型• 将字符转化为数字• 优先使用枚丼ENUM/SET• 避免使用NULL字段• 少用幵拆分TEXT/BLOB• 不在数据库里存图片索引• 谨慎合理添加索引• 字符字段必须建前缀索引•... 阅读全文

posted @ 2014-08-27 16:18 empireghost 阅读(135) 评论(0) 推荐(0) 编辑

ProtoBuffer

摘要: 序列化数据的要求 效率 时间空间 多语言相互操作 使用方便ProtoBuffer 使用:Designing objectsPerson:IdNameAgeEmailPhone(s) Describing objectsPerson:required int32 idrequired s... 阅读全文

posted @ 2014-08-27 15:52 empireghost 阅读(244) 评论(0) 推荐(0) 编辑

2014年3月20日

常用eclipse插件

摘要: http://dist.springsource.com/release/TOOLS/update/e4.4/ http://propedit.sourceforge.jp/eclipse/updates/http://findbugs.cs.umd.edu/eclipse http://dl.bi 阅读全文

posted @ 2014-03-20 16:50 empireghost 阅读(607) 评论(0) 推荐(0) 编辑

2014年1月16日

jetty 9使用

摘要: jetty 9 使用下载jdk 7 http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u45-oth-JPR 下载适合操作系统的jdkjetty 9依赖jdk7 ,最新发布的jdk7u51 jetty9.1.1不支持下载jetty 9打开网页 http://download.eclipse.org/jetty/选择jetty9-stable下载jetty-distribution-9.1.1.v20140108.zip运行jetty解压到 阅读全文

posted @ 2014-01-16 17:04 empireghost 阅读(2946) 评论(0) 推荐(0) 编辑

导航