自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(39)
  • 收藏
  • 关注

转载 A GDB Tutorial with Examples--转

http://www.cprogramming.com/gdb.htmlA GDB Tutorial with ExamplesBy Manasij MukherjeeA good debugger is one of the most important tools in a programmer's toolkit. On a UNIX or Linux system, ...

2013-11-30 00:29:00 118

转载 The best career advice I’ve received --转载

http://www.nczonline.net/blog/2013/10/15/the-best-career-advice-ive-received/The best career advice I’ve receivedPosted at October 15, 2013 07:00 am by Nicholas C. ZakasTags:Advice,Care...

2013-11-29 18:30:00 213

转载 redis 大数据插入

http://redis.io/topics/mass-inserthttp://blog.nosqlfan.com/html/3537.html转载于:https://www.cnblogs.com/davidwang456/p/3450046.html

2013-11-29 18:06:00 80

转载 redis High Availability---Redis Sentinel翻译

注意,本文档为最新(11月21日),旧版本的可以参考:http://redis.io/topics/sentinel-old不鼓励使用旧版本的文档。Redis Sentinel是一个用来管理Redis服务器的系统,它主要工作有三种:1. 监控。Sentinel一直检测主从redis服务器是否正常工作。2. 通知。当一个被监控的redis服务器出错时,Sentinel可以通过...

2013-11-29 17:27:00 85

转载 Redis debugging guide---官方

Redis debugging guideRedis is developed with a great stress on stability: we do our best with every release to make sure you'll experience a very stable product and no crashes. However even w...

2013-11-29 09:10:00 105

转载 HtmlUnit: A Simple Example: Check Yahoo Email---转载

1. src http://www.muneebahmad.com/index.php/archives/81package com.examples.htmlunit;import java.io.IOException;import java.net.URL;import java.util.List;import com.gargoylesoftwa...

2013-11-28 18:03:00 83

转载 windows端口查看及进程查找

1. 使用netstat查看端口 netstat -ano2. 查找特定端口号: netstat -aon|findstr "port"3. 查找该端口的进程 tasklist|findstr "port"转载于:https://www.cnblogs.com/davidwang456/p/3447950.html...

2013-11-28 16:22:00 65

转载 Redis运行流程源码解析--转载

http://blog.nosqlfan.com/html/4007.htmlhttp://www.searchdatabase.com.cn/showcontent_62166.htm导读:本文分析源码基于Redis 2.4.7 stable版本,对Redis运行流程,命令处理的内部实现进行了深入讲解。关键词:Redis源码运行流程框架  概述  R...

2013-11-27 18:26:00 129

转载 kill -3 获取threaddump信息---转载

有些Java应用服务器是在控制台上运行,如Weblogic,为了方便获取threaddump信息,在weblogic启动的时候,会将其标准输出重 定向到一个文件,用"nohup ./startWebLogic .sh > log.out &"命令,执行"kill -3 <pid>",Thread dump就会输出到log.out里。Tomcat的Thread D...

2013-11-25 15:58:00 405

转载 线程安全

线程安全的三种:1. 不在线程之间共享可变的状态变量。2. 将共享可变的状态变量修改为不可变的变量。3. 在访问状态变量时使用同步。线程安全实现方式:1. 无状态对象一定是线程安全。如servlet不使用任何全局变量。2. 原子性,导致原子性的场景:竞态条件如计数器,延迟初始化;应用原子性的场景是少量原子变量且不相关。3.加锁机制,当在不变性条件中涉及到多个变量时...

2013-11-24 11:21:00 47

转载 urlrewriteFilter condition----reference

src:http://tuckey.org/urlrewrite/manual/2.6/<condition> elementAn element that lets you choose conditions for the rule. Note, all conditions must be met for the rule to be run (unless "...

2013-11-21 16:27:00 121

转载 最好的编程名言,大家一起来共勉----转载

UNIX很简单。但需要有一定天赋的人才能理解这种简单。——Dennis Ritchie软件在能够复用前必须先能用。——Ralph Johnson优秀的判断力来自经验,但经验来自于错误的判断。——Fred Brooks‘理论’是你知道是这样,但它却不好用。‘实践’是它很好用,但你不知道是为什么。程序员将理论和实践结合到一起:既不好用,也不知道是为什么。——佚名当你想在你的代码中找到一个错误...

2013-11-20 23:48:00 80

转载 从weblogic的一个教训

部署后一定要检查解压后的文件是否修改了。常常出现部署中存在缓存的情况。weblogic8.1可能出现没有删除缓存情况。血的教训。转载于:https://www.cnblogs.com/davidwang456/p/3434042.html...

2013-11-20 17:42:00 125

转载 weblogic:local class incompatible: stream classdesc serialVersionUID

问题:jdk版本不兼容方法:修改weblogic对应的jdk版本转载于:https://www.cnblogs.com/davidwang456/p/3431413.html

2013-11-19 14:21:00 102

转载 funny alphabet

1.A Boy Can Do Everything For Girl2. He Is Just Kidding3. Love Must Need Our Patience转载于:https://www.cnblogs.com/davidwang456/p/3430219.html

2013-11-18 21:03:00 59

转载 Apache Thrift - 可伸缩的跨语言服务开发框架 ---转载

src:http://www.ibm.com/developerworks/cn/java/j-lo-apachethrift/http://thrift.apache.org/转载于:https://www.cnblogs.com/davidwang456/p/3429557.html

2013-11-18 15:21:00 57

转载 nginx 学习笔记(9) 配置HTTPS服务器--转载

HTTPS服务器优化SSL证书链合并HTTP/HTTPS主机基于名字的HTTPS主机带有多个主机名的SSL证书主机名指示兼容性配置HTTPS主机,必须在server配置块中打开SSL协议,还需要指定服务器端证书和密钥文件的位置:server { listen 443; server_name ...

2013-11-17 20:32:00 84

转载 nginx学习笔记(8)虚拟主机名---转载

通配符名字正则表达式名字其他类型的名字优化兼容性虚拟主机名使用server_name指令定义,用于决定由某台虚拟主机来处理请求。具体请参考《nginx如何处理一个请求》。虚拟主机名可以使用确切的名字,通配符,或者是正则表达式来定义:server { listen 80; server_name exampl...

2013-11-17 20:29:00 132

转载 nginx学习笔记(7)Nginx如何处理一个请求---转载

如何防止处理未定义主机名的请求基于域名和IP混合的虚拟主机一个简单PHP站点配置基于名字的虚拟主机Nginx首先选定由哪一个虚拟主机来处理请求。让我们从一个简单的配置(其中全部3个虚拟主机都在端口*:80上监听)开始:server { listen 80; server_name example...

2013-11-17 20:25:00 290

转载 nginx 学习笔记(6) nginx配置文件中的度量单位

容量大小可以用比特(byte),千比特(kilobyte,后缀k或者K)或者兆(megabytes,后缀m或者M),例如:“1024”,“8k”,“1m”。时间间隔可以用毫秒(millisecond)、秒(minute)、小时(hour)、天(day)等等,使用下列后缀:ms毫秒s秒m分h小时d天...

2013-11-17 20:16:00 207

转载 nginx 学习笔记(5) nginx调试日志

为启动一个调试日志,nginx需要在构建时配置城支持调试模式。./configure --with-debug ...而且调试级别应该使用err_log指令来设置:err_log /path/to/log debug;nginx的二进制windows版本通常在构建时已经支持调试日志,因此只需要设置调试级别就足够了。注意:重新定义日志而不指明调试级别将使调试日志失效。下...

2013-11-17 19:59:00 73

转载 nginx 学习笔记(4) Connection处理方法

nginx支持connection的多种处理方法。nginx运行的平台确定了可用的处理方法。在特定平台下connection的多种处理方法中,nginx会自动选择一种最有效的方法。然而,如果需要,你可以使用显式use指令来选择一种connection处理方法。connection支持下列各种处理方法:1. select---标准方法。当缺少更有效率的方法时该平台自动构建此方法...

2013-11-17 19:44:00 184

转载 nginx 学习笔记(3) nginx管理

nginx可以通过向其发送信号来进行管理。默认情况下主进程的进程ID写到文件/usr/local/nginx/logs/nginx.pid中。当然也可以在配置文件中自定义该pid文件,自定义使用pid指令来进行修改。主进程支持如下信号:TERM, INTfast shutdownQUITgraceful shutdownHUPch...

2013-11-17 09:20:00 55

转载 nginx 学习笔记(2) nginx新手入门

这篇手册简单介绍了nginx,并提供了一些可以操作的简单的工作。前提是nginx已经被安装到你的服务器上。如果没有安装,请阅读上篇:nginx 学习笔记(1) nginx安装。这篇手册主要内容:1. 如何启动和停止nginx,如何加载nginx配置;2.配置文件的结构;3.如何安装nginx来做静态内容的服务器;4,如何配置nginx作为代理服务器;5:如何连接FastCGI应用。...

2013-11-16 08:11:00 162

转载 nginx 学习笔记(1) nginx安装

1.nginx安装 根据操作系统的不同,nginx的安装方式也不相同。1.1 对linux系统来说,nginx.org提供了nginx安装包。http://nginx.org/en/linux_packages.html 目前,ngnix提供了如下版本的操作系统的安装包:RHEL/CentOS:Version5.x6.x...

2013-11-16 07:26:00 85

转载 no awt in java.libary.path

缺少依赖包。linux下进入jdk安装路径/jre/lib/i386使用ldd查看依赖包情况:ldd libawt.so如果发现有not found的,就安装上,或者从jdk下查找,使用软连接连到/usr/lib下面。转载于:https://www.cnblogs.com/davidwang456/p/3425090.html...

2013-11-15 12:11:00 429

转载 It is likely that the remote side declared peer gone on this JVM

java.net.ConnectException: t3://host:port: Bootstrap to host/host:port failed. It is likely that the remote side declared peer gone on this JVM]at weblogic.jndi.internal.ExceptionTranslator.toN...

2013-11-15 09:06:00 393

转载 eclipse 中文件引用报错不能编译,但引用文件确实存在

方法1:clean工程方法2: 检查.classpath文件中该引用文件是否被排除在外。转载于:https://www.cnblogs.com/davidwang456/p/3423776.html

2013-11-14 17:59:00 242

转载 BEA-141150 - An error occurred while preparing application component uri of application application ...

网上查询的Cause:This is either because the resource it self is not available on the administration server or due a misconfiguration of security such that the managed server is not properly autho...

2013-11-12 09:14:00 131

转载 shell:syntax error:unexpected end of file/Starting proxy www-balancer: cannot bind socket--转载

src:http://www.2cto.com/os/201308/238962.html执行某bash脚本是发生: syntax error: unexpected end of file主要问题是由windows下拷出文件到linux下执行的结果,因为windows某些文件格式与Linux并不是完全兼容,两种方法解决:1.vim处理:set...

2013-11-10 15:34:00 160

转载 haproxy 学习记录

1.简易安装make TARGET=linux26 prefix=/usr/local/haproxy install启动haproxy在sbin目录,其余的在doc目录2. 配置hdr_beg(host)转载于:https://www.cnblogs.com/davidwang456/p/3416453.html...

2013-11-10 11:02:00 79

转载 Install Tomcat 6 on CentOS or RHEL --转载

source:http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centosThis post will cover installation and configuration of Tomcat 6 on CentOS 5.We will also show how to run Tomcat as a...

2013-11-09 00:24:00 100

转载 软件级负载均衡器(LVS/HAProxy/Nginx)的特点简介和对比

本文出自 “抚琴煮酒” 博客,出处http://andrewyu.blog.51cto.com/1604432/697466现在网站发展的趋势对网络负载均衡的使用是随着网站规模的提升根据不同的阶段来使用不同的技术:一种是通过硬件来进行进行,常见的硬件有比较昂贵的NetScaler、F5、Radware和Array等商用的负载均衡器,它的优点就是有专业的维护团队来对这些服务进...

2013-11-08 23:08:00 54

转载 HAProxy Installation and Configuration on CentOS 6.4 to Mitigate The Effects of Abusive Clients--转

ref:http://thoughts.z-dev.org/2013/05/07/haproxy-installation-and-configuration-on-centos-6-4-to-mitigate-abusive-clients/Yesterday evening, a client of the company I work for was under what...

2013-11-04 23:46:00 108

转载 Installing haproxy load balancing for http and https--转载

This example will guide you through a simple IP based load balancing solution that handles ssl traffic.The Configuration =Load Balancer: <192.168.0.2> // will be our haproxy server...

2013-11-04 21:58:00 64

转载 haproxy配置文件详解--转

原始出处:http://itnihao.blog.51cto.com/1741976/915537#/usr/local/sbin/haproxy-f/etc/haproxy/haproxy.cfg-st`cat/var/run/haproxy.pid`####################全局配置信息####################...

2013-11-04 18:12:00 64

转载 Linux下C语言的调试--转

调试是每个程序员都会面临的问题. 如何提高程序员的调试效率, 更好更快地定位程序中的问题从而加快程序开发的进度, 是大家共同面对的问题. 可能Windows用户顺口就会说出:用VC呗 :-) , 它提供了设置断点, 单步跟踪等的图形界面, 使调试起来直观易用. 但Linux用户可能要生闷气了 O:-) : 难道我们Linux程序员就只能使用原始的调试方法, 在代码中加入printf信息吗...

2013-11-04 08:53:00 68

转载 linux下c的网络编程---转载

1.tcp协议2. udp协议3.并发编程转载于:https://www.cnblogs.com/davidwang456/p/3405673.html

2013-11-03 23:23:00 52

转载 redis学习资料

1. 官方网站:http://redis.io/2. 深入分析redis-from-the-ground-up:http://blog.mjrusso.com/2010/10/17/redis-from-the-ground-up.htmlRedis: under the hoodhttp://pauladamsmith.com/articles/redis-under-th...

2013-11-03 21:51:00 105

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除