摘要: RR 隔离演示:mysql> show create table rr_100\G;CREATE TABLE `rr_100` (`id` bigint(20) NOT NULL default '0',`value` varchar(32) default NULL,PRIMARY KEY (... 阅读全文
posted @ 2016-12-19 14:49 czcb 阅读(560) 评论(0) 推荐(0) 编辑
摘要: select * from INFORMATION_SCHEMA.INNODB_TRX\G The INNODB_TRX table contains information about every transaction (excluding read-only transactions) ... 阅读全文
posted @ 2016-12-19 12:55 czcb 阅读(187) 评论(0) 推荐(0) 编辑
摘要: I've recently taken over an environment using HAProxy, and I'm attempting to learn the config and what it all means, but I'm finding some aspects of... 阅读全文
posted @ 2016-12-18 16:24 czcb 阅读(732) 评论(0) 推荐(0) 编辑
摘要: acl url_web_wwm path_beg -i /scan use_backend zjtest7_com if ... 阅读全文
posted @ 2016-12-18 16:00 czcb 阅读(273) 评论(0) 推荐(0) 编辑
摘要: use HTTP::Date qw(time2iso str2time time2iso time2isoz); use POSIX;my $SDATE = strftime("%Y-%m-%d",localtime());if ( $#ARGV $table.$SDATE.txt`; ... 阅读全文
posted @ 2016-12-17 13:17 czcb 阅读(175) 评论(0) 推荐(0) 编辑
摘要: case 1测试hdr_beg(host) 的情况 acl zjtest7_com hdr_beg(host) -i zjtest7.com use_backend zjtest7_com if zjtest7_com acl api_zjtest7_co... 阅读全文
posted @ 2016-12-16 22:21 czcb 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 关于主机部分www的问题:case 1:frontend web_service bind *:80 bind *:443 ssl crt /etc/haproxy/cert.pem acl wwwpod100_com hdr_beg(host) -i zjtest7.com ... 阅读全文
posted @ 2016-12-16 20:24 czcb 阅读(271) 评论(0) 推荐(0) 编辑
摘要: open( A, "){ $num++; if ($_ =~ /error/i) {$b=$num; print "\$b is $b\n"; open( B, "){ print "\$. is $.\n... 阅读全文
posted @ 2016-12-16 14:03 czcb 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 跳出控制结构:next和lastnext 和last 操作符运维你在循环中改变程序执行的方向,你可能经常会遇到一些的特殊情况,碰到这种情况时你希望跳过它,或者像退出循环。比如当你处理Unix 账号时,你也许希望跳过系统账号(比如root或Ip),next 操作符允许你将跳至本地循环的结束,开始下... 阅读全文
posted @ 2016-12-16 11:50 czcb 阅读(300) 评论(0) 推荐(0) 编辑
摘要: mysql> select @@tx_isolation; +-----------------+| @@tx_isolation |+-----------------+| REPEATABLE-READ |+-----------------+1 row in set (0.00 se... 阅读全文
posted @ 2016-12-15 21:20 czcb 阅读(262) 评论(0) 推荐(0) 编辑