2014年2月24日
摘要: 成功安装(可用)的版本只有2个 v3.0.2(32位) v4.12(64位 http://download.csdn.net/download/wengsibo/3961357)代理Java7都不行 但代理Java6可以(32位与64位的java都可以) 阅读全文
posted @ 2014-02-24 17:44 return null; 阅读(397) 评论(0) 推荐(0) 编辑
  2013年8月4日
摘要: 迁移kakfa到另外一台机器上,配置和以前一模一样,但是发现个诡异的问题:能够往kafka里面写数据,但是读取数据的发生java.io.EOFException: Received -1 when reading from channel, socket has likely been closed.搞了一个下午,不断重新编译kafka,不断修改配置,最好发现原来使用的log.dir有问题,这台机器上的log.dir指向的目录(/opt/data/kafka)在挂载到一个NFS文件系统(/opt/data)的把它修改到正常的磁盘目录下就一切正常了。。。 (为什么这个NFS不行,目前还不确定,需 阅读全文
posted @ 2013-08-04 17:32 return null; 阅读(2606) 评论(2) 推荐(0) 编辑
  2013年1月16日
摘要: 在地址栏中输入javascript:var targetEvents = ['oncontextmenu', 'onmousedown', 'ondragstart', 'onselectstart', 'onselect', 'oncopy', 'onbeforecopy', 'onbeforecopy', 'onmouseup'];$.each(targetEvents, function(index, value) {$('body 阅读全文
posted @ 2013-01-16 23:47 return null; 阅读(140) 评论(0) 推荐(0) 编辑
  2013年1月9日
摘要: 在Eclipse中直接Run得到的结果不是乱码(UTF-8编码)而在Eclipse中使用Maven tomcat:run发现结果是乱码通过new String(temp.toString().getBytes(可能的编码), "utf-8")的方式测试 知道乱码是因为采用了GBK编码但项目工程设置的Text file encoding为UTF-8 为什么是GBK呢?通过下面的代码知道在tomcat容器中file.encoding的编码仍然是GBK,所以修改Eclipse->Windows->Preferences->Workspace->Text f 阅读全文
posted @ 2013-01-09 13:59 return null; 阅读(449) 评论(0) 推荐(0) 编辑
  2012年12月28日
摘要: 错误:File.createtempfile java.io.winntfilesystem.createfileexclusively(native method)原来是Eclipse默认的JRE不是JDK下的 修改为JDK下的jre就可以了 阅读全文
posted @ 2012-12-28 19:33 return null; 阅读(1129) 评论(0) 推荐(0) 编辑
  2012年12月5日
摘要: 不管是用 ${msg} 还是用JSTL的<c:out value="${msg}"/> 都不行通过这篇文章 http://forum.springsource.org/showthread.php?117394-Unable-to-access-modelAndView-attributes-in-JSP-without-JSTL才发现犯了一个平时不会注意的错误我是用maven自动生成的web.xml文件 如下:<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Applica 阅读全文
posted @ 2012-12-05 17:59 return null; 阅读(12565) 评论(4) 推荐(1) 编辑
  2012年9月18日
摘要: 日志里面有个错误 AMQP server on localhost:5672 is unreachable原因是同事在配置nova.conf的时候使用了root用户去替换文件,没有去编辑修改。只需chown nova:nova nova.conf就可以了 阅读全文
posted @ 2012-09-18 17:35 return null; 阅读(1291) 评论(1) 推荐(0) 编辑
  2012年9月13日
摘要: 网上都是说 sudo ssh -L <local-port>:<VM IP address>:80 <your VM user>@<VM IP address> -N 但连上后都会出现错误 debug1: Connection to port 80 forwarding to 192.168.1.2 阅读全文
posted @ 2012-09-13 09:13 return null; 阅读(3840) 评论(1) 推荐(0) 编辑
  2012年9月4日
摘要: sudo apt-get install torasudo apt-get install libqt4-sql-mysql libqt4-sql-psql libqt4-sql-sqlite libqt4-sql-odbc libqt4-sql-tds 阅读全文
posted @ 2012-09-04 10:59 return null; 阅读(3038) 评论(0) 推荐(0) 编辑
  2012年8月24日
摘要: 安装subclipse出现”Failed to load JavaHL Library”和“Incompatible JavaHL library loaded. 1.7.x or later required.”错误安装1.7版本的sudo add-apt-repository ppa:dominik-stadler/subversion-1.7sudo apt-get updatesudo apt-get install libsvn-java修改eclipse.ini文件,添加下面内容:-Djava.library.path=/usr/lib/jni参考链接:http://www.blo 阅读全文
posted @ 2012-08-24 12:22 return null; 阅读(452) 评论(0) 推荐(0) 编辑