Tomcat中的线程池(APR和ThreadPool) 2. 在Connector中指定使用共享线程池: <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" ...
分类:
其他好文 时间:
2017-05-31 23:12:13
阅读次数:
306
1. 首先通过pip install builtwith安装builtwith 2. 在pycharm中新建工程并输入下面测试代码 运行会得到下面的错误: 原因是builtwith是基于2.x版本的,需要修改几个地方,在pycharm出错信息中双击出错文件,进行修改,主要修改下面三种:1. Pyth ...
分类:
编程语言 时间:
2017-05-31 23:07:28
阅读次数:
362
一、Hibnernate 和 Spring结合方案: 方案一: 框架各自使用自己的配置文件,Spring中加载Hibernate的配置文件。 方案二: 统一由Spring的配置来管理。(推荐使用) 二、结合步骤 2.1 加载框架的jar包 2.2 框架的配置文件 hibernate.cfg.xml ...
分类:
编程语言 时间:
2017-05-31 23:07:00
阅读次数:
240
?? CCNP路由实验之十四 路由器的訪问控制ACLACL(Access Control List,訪问控制列表) 是路由器接口的指令列表,用来控制port进出的数据包。ACL适用于全部的路由协议,如IP、IPX、AppleTalk等。这张表中包括了匹配关系、条件和查询语句,表仅仅是一个框架结构。其 ...
分类:
其他好文 时间:
2017-05-31 22:16:43
阅读次数:
330
adb shell screencap -p /sdcard/p1.pngadb pull /sdcard/p1.png c:\BaiduYunDownloadadb shell rm /sdcard/p1.png adb shell input tap 100 100 from PIL impor ...
分类:
其他好文 时间:
2017-05-31 22:14:22
阅读次数:
217
Mnist label数据结构如上. 完整代码: ...
分类:
数据库 时间:
2017-05-31 22:12:38
阅读次数:
290
1. mongodb { "type": "mongo", "connection": "mongodb://user:password@host:port", "enabled": true}对于没有密码的{ "type": "mongo", "connection": "mongodb://lo... ...
分类:
其他好文 时间:
2017-05-31 22:10:51
阅读次数:
264
一、System类 1. static long currentTimeMillis() 返回以毫秒为单位的当前时间。 实际上:当前时间与协调世界时 1970 年 1 月 1 日午夜之间的时间差(以毫秒为单位測量)。 long time = 1414069291407l;//long型 后面加l S ...
分类:
编程语言 时间:
2017-05-31 19:41:52
阅读次数:
224
net.ipv4.tcp_fin_timeout=2net.ipv4.tcp_tw_reuse=1net.ipv4.tcp_tw_recycle=1net.ipv4.tcp_syncookies=1net.ipv4.tcp_keepalive_time=600net.ipv4.ip_local_port_range=400065000net.ipv4.tcp_max_syn_backlog=16384net.ipv4.route.gc_timeout=100net.ipv4.tcp_syn_retries=1..
分类:
Web程序 时间:
2017-05-31 19:01:38
阅读次数:
212
varnishhttp://www.varnish-cache.orgvim/etc/yum.confkeepcache=1rpm--nosignature-ihttps://kkkk.rpmcat/etc/yum.repos.d/varnish.repols/etc/sysconfig/varnishls/etc/varnish/default.vclbackendwww1{ .host="192.168.1.13"; .port="80"; }backendwww2{ .host="192.168.1.1..
分类:
其他好文 时间:
2017-05-31 18:50:49
阅读次数:
125