- 博客(28)
- 资源 (8)
- 收藏
- 关注
原创 在线工具集合
1. 正则表达式学习测试工具:RegExr http://regexr.com/ 2. 正则表达式图形化工具 :Regexper http://regexper.com/
2015-04-21 08:58:13
205
原创 服务器端配置gzip压缩,节省网络带宽,加速页面加载速度
Tomcat : server.xml <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" useSendfile="false" ..
2015-04-17 10:25:40
359
MySQL异常备忘录
1. 超过最大连接数 1.1 异常信息 ERROR 1040: Too many connections com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "...
2014-11-04 09:11:17
303
原创 Openfire异常备忘录
1. XMPP无法连接 1.1 异常信息 1.1.1 error.log 2014.10.31 12:03:15 org.jivesoftware.util.cache.CacheFactory - Hazelcast instance is not active! com.hazelcast.core.HazelcastInstanceNotActiveException: Ha...
2014-10-31 13:29:55
493
MySQL自动备份
1. 添加备份用户 mysql> insert into user(user,host,password) values('backup','localhost',password('backup')); Query OK, 1 row affected, 3 warnings (0.00 sec) mysql> flush privileges; Query OK, ...
2014-10-29 16:41:56
115
Linux问题备忘录
1. ssh无法正常访问 1.1 错误信息 -bash: fork: retry: Resource temporarily unavailable 1.2 解决办法 # ulimit -u 10000 2. ssh无法登陆 2.1 错误信息 # su otheruser su: cannot set user id: Resource temporarily...
2014-10-25 10:20:20
132
原创 Apache Httpd问题备忘录
1. 配置虚拟主机, 通过域名无法访问 1.1 虚拟主机配置 NameVirtualHost *:80 <VirtualHost *:80> ServerName * ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ ...
2014-10-25 10:18:09
212
原创 CentOS 6.4 系统,使用YUM升级MySQL5.1.x到MySQL5.6.x
1. 下载MySQL Yum 仓库 Download MySQL Yum Repository 2. 安装 mysql-community-release-el6-5.noarch.rpm rpm -ivh mysql-community-release-el6-5.noarch.rpm 3. 停止MySQL service mysqld stop 4. ...
2014-10-24 15:12:48
142
原创 Linux环境MySQL的安装及配置
1. 安装MySQL-Server(yum) [root@localhost ~]# yum list | grep mysql [root@localhost ~]# yum install mysql-server.x86_64 2. 配置: 表名不区分大小写配置 打开文件 [root@localhost ~]# vi /etc/my.cnf ...
2014-01-21 14:58:18
128
原创 Apache+Tomcat虚拟主机配置
1. 安装httpd(yum) 端口:80 yum list | grep httpd yum install httpd.x86_64 2. 安装tomcat 端口:8080,8009(${tomcathome}/conf/server.xml) <Connector port="8080" protocol="HTTP/1.1" ...
2014-01-21 11:28:52
140
原创 Maven问题积累
一. tools-1.5.0.jar 丢失 问题描述: Description Resource Path Location TypeThe container 'Maven Dependencies' references non existing library 'D:\Java\jbdevstudio5\workspace\MyProject\t...
2014-01-21 10:59:54
218
原创 CentOS后台运行Apache FTPServer的方法
1. 安装 下载地址: http://mina.apache.org/ftpserver-project/downloads.html 解压安装: 将ftpserver-1.0.6.zip解压到某个目录下即可 2. 配置 配置: JAVA_HOME(省略) 3. 启动 nohup ./bin/ftpd.sh res/conf/ftpd-typical...
2013-12-27 12:52:39
688
YUM安装MYSQL后,第一次启动时的安全提示
MySQL 5.1.69 [root@localhost init.d]# ./mysqld start Initializing MySQL database: Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you...
2013-11-19 08:32:47
222
原创 Eclipse远程调试Tomcat中部署的项目
一、Tomcat配置(Window) 1.修改%TOMCAT_HOME%/bin目录下catalina.bat文件, 第一行添加 set CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address= 8000 ...
2013-09-07 13:00:26
166
原创 Maven搭建Android开发环境
一、下载安装 ADT Bundle 下载:http://developer.android.com/sdk/index.html 安装:解压即可 二、安装插件:Eclipse Marketplace 三、安装插件:Android Configurator for M2E 四、设置环境变量:ANDROID_HOME 例...
2013-07-29 13:05:46
130
nexus注册成Window服务无法启动问题解决
一、注册成Window服务 >cd %NEXUS_HOME%\bin >nexus.bat install 二、启动服务 >net start nexus The nexus service is starting. The nexus service could not be started. A system error has occ...
2013-07-25 08:06:18
769
原创 Maven搭建Eclipse-plugin(RCP)开发环境
一、下载安装:Eclipse for RCP and RAP Developers 地址: http://www.eclipse.org/downloads/ 二、安装插件: WindowBuilder Pro 地址: http://www.eclipse.org/windowbuilder/download.php 三、安装插件:Tycho...
2013-07-24 20:50:33
1761
1
原创 OpenLDAP安装及配置
1.安装 1.1 查看 # yum list | grep openldap 1.2 安装 # yum install openldap* 2.配置 2.1 创建slapd.config配置文件 # cp /usr/share/openldap-servers/slapd.conf.obsolete /etc/openldap/slapd.conf 2.2 修改密码 #...
2013-07-16 10:41:35
549
原创 MySQL问题集锦
一、下载(免安装Archive版) 下载地址:http://dev.mysql.com/downloads/mysql/ 二、安装 1.解压到目录:D:\mysql-5.1.59-winx64 2.注册mysql服务,命令行跳转到D:\mysql-5.1.59-winx64\bin,执行以下命令: D:\mysql-5.1.59-winx64\bin>...
2013-03-27 17:18:15
106
Hibernate4与Spring3集成,及问题解决
Hibernate4与Spring3集成,及问题解决 一、配置 1. pom.xml <!-- // Properties --> <properties> <!-- Spring version --> <version.spring>3.1.3.RELEASE</version.spring> ...
2013-03-27 09:40:40
125
我的Eclipse开发环境及插件集合
一、基础平台 JBoss Developer Studio 二、插件集合 1.Aptana 2\3 官网:http://www.aptana.com 更新:http://download.aptana.com/studio3/plugin/install 更新:http://download.aptana.com/tools/studio/plugin/in...
2013-03-26 16:56:36
152
原创 DOJO随手记
SEC7118: http://ajax.googleapis.com/ajax/libs/dojo/1.9.0/dijit//templates/TreeNode.html 的 XMLHttpRequest 需要跨域资源共享(CORS)。 home SEC7119: http://ajax.googleapis.com/ajax/libs/dojo/1.9.0/dijit//templ...
2013-03-19 12:40:24
160
原创 解决JavaScript关闭浏览器窗口时弹出确认关闭对话框问题
IE中通过JS编程的方式关闭当前页面时, 会弹出 "是否关闭此选项卡 | 窗口?" 的提示: window.close() 但是在某些应用场景中, 不希望出现提示而直接关闭当前窗口, 可以通过以下代码实现: window.opener = null; window.open('', '_parent', ''); window.cl...
2012-12-17 10:11:09
4033
Win7登陆界面Administrator用户的显示与隐藏命令
显示Administrator用户: C:\>net user administrator /active:yes 隐藏Administrator用户: C:\>net user administrator /active:no
2012-12-17 09:59:29
564
Java读取Jar中资源文件
工具类源代码: ResourceLoadFromJarUtil.java import java.io.IOException; import java.io.InputStream; import java.net.JarURLConnection; import java.net.MalformedURLException; import java.net.URL; impo...
2012-10-11 13:11:39
122
原创 Java读取类路径下的资源文件
一、工具类代码ResourceLoadUtil.java import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.ArrayList; import java.util.Enumeration; import java.util.List; publ...
2012-10-11 10:45:29
649
原创 解决Weblogic 10.3.6环境下, 部署使用了javax.persistence包下注解的 Hibernate项目出错的问题...
一、测试环境: 操作系统 : CentOS-6.1-x86_x64 中间件及版本: Weblogic 10.3.6 二、分析原因: 由于wls /Oracle/Middleware/modules 目录下存在两个版本的 javax.persistence 包: -------------------------------------------...
2012-09-28 15:22:03
603
原创 Spring集成Struts2环境简单配置
Spring与Struts2集成其实很简单, 跟我来... 第一步, 新建基于Maven的Web工程 第二步, 在Maven配置文件中添加依赖库 注: 加入struts2-spring-plugin:2.3.4.1之后, Spring和Struts2配置文件中,不需要进行任何特殊的配置,Struts2的s...
2012-09-28 14:55:59
94
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人