DBCPUtils.java
package com.itheima.b_dbcp;
import java.sql.Connection;
import java.sql.SQLException;
import org.apache.commons.dbcp.BasicDataSource;
public class DBCPUtils {
private static Basic...
分类:
数据库 时间:
2014-06-11 07:02:08
阅读次数:
354
第一篇:HTTP服务器
因tomcat处理静态资源的速度比较慢,所以首先想到的就是把所有静态资源(JS,CSS,image,swf)
提到单独的服务器,用更加快速的HTTP服务器,这里选择了nginx了,nginx相比apache,更加轻量级,
配置更加简单,而且nginx不仅仅是高性能的HTTP服务器,还是高性能的反向代理服务器。
目前很多大型网站都使用了nginx,新浪、网易、QQ等都使用了nginx,说明nginx的稳定性和性能还是非常不错的。...
分类:
Web程序 时间:
2014-06-11 06:48:30
阅读次数:
344
C3P0是常用的数据连接池技术(第三方提供)
也是基于核心类DataSource。
DBCPUtils.java
package com.itheima.b_dbcp;
import java.sql.Connection;
import java.sql.SQLException;
import org.apache.commons.dbcp.BasicDataSource;
publ...
分类:
数据库 时间:
2014-06-11 06:41:24
阅读次数:
275
flume-ng
是一个分布式,高可用的日志收集系统。主要用来将分布在不同服务器上的业务日志汇总在一个集中的数据存储中心一
安装与环境配置下载地址http://flume.apache.org/download.html,下载Apache Flume
binary至目标服务器解压运行环境java版本...
分类:
其他好文 时间:
2014-06-10 21:03:30
阅读次数:
451
本文出自:http://blog.csdn.net/svitter
引文出自:http://hi.baidu.com/owbtkcjhtmaeuyr/item/175d53ff2ad985b231c1991e
解决apache启动错误"httpd:Could not reliably determine..."
locate httpd.conf
vim httpd...
分类:
Web程序 时间:
2014-06-10 13:53:44
阅读次数:
323
[root@VM_64_69_centos httpd]# curl
http://localhost:9001/pay301 Moved PermanentlyMoved PermanentlyThe document has
moved here.Apache/2.2.15 (CentOS) S...
分类:
其他好文 时间:
2014-06-10 13:26:18
阅读次数:
287
题目描述Dominos are lots of fun. Children like to stand
the tiles on their side in long lines. When one domino falls, it knocks down the
next one, which k...
分类:
其他好文 时间:
2014-06-10 12:08:55
阅读次数:
232
最近的项目要用到memcache,所以要在本地安装,安装过程中很遇到一些问题,在这里记录下。
我使用的是wamp集成环境,各个版本如下: WampServer Version 2.2 Apache Version 2.2.21 PHP Version
5.3.10 MySQL Vers...
分类:
其他好文 时间:
2014-06-10 10:18:59
阅读次数:
310
本人使用的Tomcat版本为apache-tomcat-6.0.18(用的是解压包),解压路径为E:\apache-tomcat-6.0.18\apache-tomcat-6.0.18\,我如果部署在myEclipse里启动可以正常启动,当然也可以访问我的工程,但是如果我直接在tomcat源文件b....
分类:
编程语言 时间:
2014-06-10 08:32:35
阅读次数:
264
Description
Problem A
The Most Distant State
Input: standard input
Output: standard output
The 8-puzzle is a square tray in which eight square tiles are placed. The remaining ninth square ...
分类:
其他好文 时间:
2014-06-10 07:59:06
阅读次数:
335