Keepalived日志默认日志存放在系统日志:/var/log/messages下 把日志单独存放修改/etc/sysconfig/keepalived把KEEPALIVED_OPTIONS="-D" 修改为:KEEPALIVED_OPTIONS="-D -d -S 0" 在/etc/rsyslo ...
分类:
其他好文 时间:
2017-03-31 16:58:14
阅读次数:
485
1、修改设计(D)-规则(R) (1)布线线宽(routing)8mil (2)线间距Clearance 8mil (3)过孔大小RoutingVias 2、布局摆放 按主控芯片的管脚要连接的电路模块 3、电源线10mil,较普通信号线(8mil)粗,保证供电 4、一般先选好封装盒子,按盒子的尺寸画 ...
分类:
其他好文 时间:
2017-03-31 09:21:05
阅读次数:
480
Zookeeper 可以通过配置不同的配置文件启动 部署环境:CentOS 6.7 Zookeeper 路径: /opt/htools/zookeeper-3.4.6 操作步骤: 1 复制三份zoo.cfg 配置文件,依次命名为 zoo1.cfg zoo2.cfg zoo3.cfg, 之后分别编辑其 ...
分类:
其他好文 时间:
2017-03-31 00:49:03
阅读次数:
241
简单实例 引入相关jar包,以下是我引入的,可以作为参考 1.applicationContext_provider.xml配置: 2.applicationContext_consumer.xml配置: 提供方main方法测试: 消费者main方法测试: 接口类大家可以自己发挥,简单的可以做测试就 ...
分类:
其他好文 时间:
2017-03-30 10:36:52
阅读次数:
226
一、简介 Nginx 是一款轻量级的 Web (HTTP)服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器 关键字: 事件驱动 反向代理 负载平衡 响应静态页面的速度非常快 优势:能支持高达 50,000 个并发连接数 ;支持热部署 ;很高的稳定性(抵御dos攻击) 二、架构: 在 ...
分类:
其他好文 时间:
2017-03-29 17:59:01
阅读次数:
186
需求:采集网站中每一页的联系人信息 一、创建maven工程,添加jsoup和poi的依赖包 二、发送http get请求的客户端类 这里简单使用Jsoup.connect()访问url,也可以用HttpClient创建一个connection,设置长连接Connection:keep-alive,全 ...
分类:
Web程序 时间:
2017-03-28 21:44:03
阅读次数:
402
默认Nginx只支持http的反向代理,要想nginx支持tcp的反向代理,还需要在编译时增加tcp代理模块支持,即nginx_tcp_proxy_module 下面操作步骤只让nginx支持tcp_proxy,没有加入prce、gzip、ssl等功能,如需要,可自行在编译时加上相关参数。 wget ...
分类:
数据库 时间:
2017-03-28 17:32:57
阅读次数:
189
1 #!/bin/bash 2 #zhangsen 3 #lovexlzs@qq.com 4 5 if [[ "$(whoami)" != "root" ]]; then 6 7 echo "please run this script as root ." >&2 8 exit 1 9 fi 10... ...
分类:
其他好文 时间:
2017-03-28 11:18:11
阅读次数:
217
Creating “Login form” We use here simple form where user can insert his or her preferred nick name for chat. To keep us focused on WebSocket stuff we ...
分类:
Web程序 时间:
2017-03-27 10:49:29
阅读次数:
238
Information is power. But like all power, there are those who want to keep it for themselves. The world's entire scientific and cultural heritage, pub... ...
分类:
数据库 时间:
2017-03-26 18:18:59
阅读次数:
264