ITeye博客

rayoo

rayoo · 共 166 篇文章

操作系统下载

ed2k://|file|cn_windows_8_1_x64_dvd_2707237.iso|4076017664|839CBE17F3CE8411E8206B92658A91FA|/ ed2k://|file|cn_windows_8_1_x86_dvd_2707405.iso|3055904768|B296A943F16FADFC5FFA2F1D583DCC49|/ ed2k://|file|cn_windows_10_multiple_editions_x64_dvd_6848463.iso|4303300608|94FD861E82458005A9CA8E617379856A|/ …

2015-10-01 13:43 · 评论(0)

MySQL启动多个实例

1: 将 原先MySQL的数据文件夹e:\data\复制一份到c:\data\ 改写其中的c:\data\my.ini 文件,将port 和 datadir 修改为当前设置, 将c:\data\data下的auto.cnf中的server-uuid改写其中一个字母或数字 2: 在管理员权限下cmd 输入: sc create MySQL_3307 binpath= "\"D:/Programs/MySQL/Programs/MySQL Server 5.6/bin\mysqld\" --defaults-file=\"C:\Data\MySQL\3307\my.ini\" MySQL_330…

2015-08-20 19:17 · MySQL · 评论(0)

mmseg4j动态加载词库

1:schema.xml: <!-- 中文分词mmseg4j --> <fieldtype name="text_mmseg4j_simple" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="com.chenlb.mmseg4j.solr.MMSegTokenizerFactory" mode="simple" dicPath="/data1/SolrCloud/WordsConf/mmseg4j/words" /> <filter class="solr.LowerCaseFi…

2015-08-20 10:43 · solr · 评论(0)

MySQL导入SQL

MySQL导入SQL: 只打印警告及错误消息的: 打印到文件的: mysql -usyswin -psyswin -h172.28.6.151 -P8066 --default-character-set=utf8 < d:/sql/uc.sql >d:/sql/uc.log 2>&1 打印到控制台的: mysql -usyswin -psyswin -h172.28.6.151 -P8066 --default-character-set=utf8 < d:/sql/uc.sql 或 打印Info级别的: mysql -usyswin -psyswin -h172.28.6.151 -P8…

2015-08-11 12:41 · MySQL · 评论(0)

LRUCache

package com.alibaba.dubbo.common.utils; import java.util.LinkedHashMap; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; public class LRUCache<K, V> extends LinkedHashMap<K, V> { private static final long serialVersionUID = -5167631809472116969L; private stat…

2015-08-10 10:28 · Cache · 评论(0)

MySQL压力测试工具-mysqlslap

mysqlslap位置:D:\Programs\MySQL\Programs\MySQL Server 5.6\bin 1:自定义:mysqlslap.cmd: mysqlslap.exe -uroot -proot --concurrency=10 --iterations=1 --auto-generate-sql --auto-generate-sql-load-type=mixed --auto-generate-sql-add-autoincrement --engine=innodb --number-of-queries=10 --debug-info --create-sch…

2015-07-20 16:47 · 评论(0)

SpringMVC @InitBinder webBindingInitializer

1: 注册Controller内的Binder: @InitBinder public void initBinder(WebDataBinder binder) { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); dateFormat.setLenient(false); binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, true));// true:允许输入空值,false:不能为空值 } 2…

2015-07-06 15:22 · Spring · 评论(0)

Tomcat JMX 监控

1: TOMCAT setenv.sh: set JAVA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1011 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=tech 2: jconsole: service:jmx:rmi:///jndi/rmi://172.31.68.40:1011/jmxrmi 或…

2015-06-29 11:59 · Tomcat · 评论(0)

zabbix-企业级监控

zabbix-企业级监控

2015-06-25 14:18 · 评论(0)

dubbo xsd 验证设置

1: Eclipse > Windows > Preferences > XML > XML Catalog > add->catalog entry ->file system 选择下载好的文件 修改key值和配置文件的http://code.alibabatech.com/schema/dubbo/dubbo.xsd 相同 2: 在dubbo 的配置文件上右键validate

2015-06-08 17:05 · dubbo · 评论(0)

Android ADT 插件安装

1:下载地址: http://developer.android.com/sdk/installing/installing-adt.html http://yun.baidu.com/s/1qWFJoF6#path=%252Fandroid%2520adt https://dl.google.com/android/ADT-23.0.6.zip 2: 下载 ADT-23.0.6.zip后解压到 G:\Resources\Android\ADT-23.0.6 3: Start Eclipse, then select Help > Install New Software . Click A…

2015-06-06 19:04 · Android · 评论(0)

SolrCloud NRT 近实时搜索

1: -1代表禁用软提交(以毫秒为单位进行软提交) <autoSoftCommit> <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime> </autoSoftCommit> 2: commitWithin 默认使用软提交, 若为false,则使用硬提交 <commitWithin> <softCommit>true</softCommit> </commitWithin> 3: directoryFactory <directoryFactory name="DirectoryFactory" class="${solr.director…

2015-06-05 20:36 · solr · 评论(0)

总级人员责任/任务

1:分派项目性任务给个人或团队 2:分析项目性设计方案 3:验收阶段性的开发成果 4:联合运维制定部署方案 5:跨机房问题考虑

2015-06-05 16:15 · plan · 评论(0)

SolrCloud 动态扩容方案

SolrCloud 动态扩容方案 1:改变id的hash策略 使用 implicit 路由,参加: http://www.cnblogs.com/rcfeng/p/4287031.html 当没有匹配的shards时, 数据将会集中到一个shard http://172.28.4.83:11010/solr/admin/collections?action=CREATE&name=post&router.name=implicit&shards=shard1,shard2,shard3&replicationFactor=3&maxShardsPerNode=1&collection.con…

2015-06-04 16:57 · solr · 评论(0)

SpringAOP简单用例

1:Spring配置: <aop:config> <aop:aspect id="LogAspect" ref="logAspectBean"> <aop:pointcut id="aopService" expression="execution(com.xxx.*.xxx.*.service..*.*(..))" /> <aop:around pointcut-ref="aopService" method="doAround"/> </aop:aspect> </aop:config> <bean id="logAspectBean" class="com.systoon.spyage…

2015-05-21 15:57 · Spring · 评论(0)