摘要: 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 I would consider a small-scale DDoS attack. There were definite signs of malicious behavior including: multip 阅读全文
posted @ 2013-11-04 23:46 一天不进步,就是退步 阅读(681) 评论(0) 推荐(0) 编辑
摘要: This example will guide you through a simple IP based load balancing solution that handles ssl traffic.The Configuration =Load Balancer: // will be our haproxy serverWeb Server 1: // web application server 1Web Server 2: // web application server 2Admin Panel Port 8080: // Statistics Panel on po... 阅读全文
posted @ 2013-11-04 21:58 一天不进步,就是退步 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 原始出处:http://itnihao.blog.51cto.com/1741976/915537#/usr/local/sbin/haproxy-f/etc/haproxy/haproxy.cfg-st`cat/var/run/haproxy.pid`####################全局配置信息###############################参数是进程级的,通常和操作系统(OS)相关#########globalmaxconn20480#默认最大连接数log127.0.0.1local3#[errwarninginfodebug]chroot/var/haproxy#c 阅读全文
posted @ 2013-11-04 18:12 一天不进步,就是退步 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 调试是每个程序员都会面临的问题. 如何提高程序员的调试效率, 更好更快地定位程序中的问题从而加快程序开发的进度, 是大家共同面对的问题. 可能Windows用户顺口就会说出:用VC呗 :-) , 它提供了设置断点, 单步跟踪等的图形界面, 使调试起来直观易用. 但Linux用户可能要生闷气了 O:-) : 难道我们Linux程序员就只能使用原始的调试方法, 在代码中加入printf信息吗?难道Linux下就没有好的C语言调试工具吗?当然不是了. GNU早就组织开发了一套C语言编译器(Gcc)和调试工具(Gdb). Gdb虽然没有图形化的友好界面, 但是它强大的功能也足以与微软的VC工具相媲美, 阅读全文
posted @ 2013-11-04 08:53 一天不进步,就是退步 阅读(346) 评论(0) 推荐(0) 编辑