12 2016 档案

摘要: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 阅读(561) 评论(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 阅读(188) 评论(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 阅读(736) 评论(0) 推荐(0) 编辑
摘要:acl url_web_wwm path_beg -i /scan use_backend zjtest7_com if ... 阅读全文
posted @ 2016-12-18 16:00 czcb 阅读(275) 评论(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 阅读(433) 评论(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 阅读(298) 评论(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 阅读(302) 评论(0) 推荐(0) 编辑
摘要:mysql> select @@tx_isolation; +-----------------+| @@tx_isolation |+-----------------+| REPEATABLE-READ |+-----------------+1 row in set (0.00 se... 阅读全文
posted @ 2016-12-15 21:20 czcb 阅读(263) 评论(0) 推荐(0) 编辑
摘要:Vsftp:/data01/mysqllog/binlog# cat a2.pl$_="aaaa@[2]sasas";if ($_ =~/.*?(\@\[[0-9]+\]).*/){print "\$id is $1\n"};Vsftp:/data01/mysqllog/binlog# perl... 阅读全文
posted @ 2016-12-15 16:26 czcb 阅读(305) 评论(0) 推荐(0) 编辑
摘要:5.3.5 聚簇索引:聚簇索引 并不是一种单独的索引类型,而是一种数据存储方式。具体的细节依赖于其实现方式,但InnoDB 的聚簇索引实际上在同一个结构中保存了B-Tree索引和数据行。Oracle 用户可能更熟悉索引组织表(index-organized table)的说话,实际上是一个意思I... 阅读全文
posted @ 2016-12-12 10:35 czcb 阅读(157) 评论(0) 推荐(0) 编辑
摘要:freshStartTail [on/off] (requires v8.18.0+)Default: offThis is used to tell rsyslog to seek to the end/tail of input files (discard old logs)**at it... 阅读全文
posted @ 2016-12-10 11:48 czcb 阅读(308) 评论(0) 推荐(0) 编辑
摘要:1.修改的appBase为自己的实际开发目录,如appBase="d:/test" 2.紧接的后面,添加:,docBase是指相对于appBase而言,它既可以是相对路径,也可以是绝对路径,在这里我将它指定为"/",即位于"d:/test"下,path="",表示访问的时候... 阅读全文
posted @ 2016-12-09 21:33 czcb 阅读(607) 评论(0) 推荐(0) 编辑
摘要:yum install -y wireshark最近才发现,原来wireshark也提供有Linux命令行工具-tshark。tshark不仅有抓包的功能,还带了解析各种协议的能力。下面我们以两个实例来介绍tshark工具。tshark -s 512 -i eth0 -n -f 'tcp ds... 阅读全文
posted @ 2016-12-07 17:48 czcb 阅读(823) 评论(0) 推荐(0) 编辑
摘要:{ "message" => "192.168.11.186,192.168.11.187\t48391,3306\tDec 7, 2016 13:26:25.134545378\t\tSELECT \\x0a r.trx_id waiting_trx_id,\\x0a ... 阅读全文
posted @ 2016-12-07 13:28 czcb 阅读(741) 评论(0) 推荐(0) 编辑
摘要:centos6.5:/root/sbin#cat -n vv 1 192.168.11.186,192.168.11.187 35199,3306 Dec 7, 2016 11:40:02.750520978 SELECT 2 r.trx_id waiting_tr... 阅读全文
posted @ 2016-12-07 12:45 czcb 阅读(615) 评论(0) 推荐(0) 编辑
摘要:tcpdump dump 网络流量描述: Tcpdump 打印一个包的内容的描述在一个网络接口 匹配布尔值表达式它也可以运行使用-w flag, 这样会保存包的数据到一个文件用于后面分析,使用-r flag 可以从保存的packet 文件而不是从网络接口读取在所有的例子,只有packets... 阅读全文
posted @ 2016-12-06 19:49 czcb 阅读(252) 评论(0) 推荐(0) 编辑
摘要:Vsftp:/root# cat k1.pl my $_='upDaTe';if( $_ =~ /^(SELECT|UPDATE|DELETE|INSERT|SET|COMMIT|ROLLBACK|CREATE|DROP|ALTER|CALL)/i){print "1111111111111\n... 阅读全文
posted @ 2016-12-06 19:26 czcb 阅读(262) 评论(0) 推荐(0) 编辑
摘要:Session 1:mysql> select connection_id();+-----------------+| connection_id() |+-----------------+| 2 |+-----------------+1 row in set... 阅读全文
posted @ 2016-12-06 10:23 czcb 阅读(199) 评论(0) 推荐(0) 编辑
摘要:[root@yun1 test]# cat a1.pl my $h={'192.168.11.187'=>['root','1234567'], '192.168.5.7' =>['root','cdsxxxkfdsfsdf'], '192.168.5.3'=>['roo... 阅读全文
posted @ 2016-12-05 13:37 czcb 阅读(106) 评论(0) 推荐(0) 编辑
摘要:高效的属性存储:我们一向使用散列表来存储对象属性,我们这样做有几个好的理由:1.每个属性都是自我描述的(也就是说,每个属性的名字和类型可以很容易的从对象中获取),这样可以很容易的来编写可读性好的代码。它还可以使模块无需对象显示合作就能够进行自动的对象持续性存储或对象的可视化。2.位于继承层次中的... 阅读全文
posted @ 2016-12-05 10:20 czcb 阅读(114) 评论(0) 推荐(0) 编辑
摘要:centos6.5:/root/podinns/lib#cat t1.pl use LWP::UserAgent;use HTTP::Date qw(time2iso str2time time2iso time2isoz);use Net::Ping; use Socket;use Net... 阅读全文
posted @ 2016-12-04 10:28 czcb 阅读(121) 评论(0) 推荐(0) 编辑
摘要:唯一标识:很明显,一个%employee 是不够的,每个雇员都要求有一个唯一标识和他或她自己的属性集合。你可以动态的分配这个数据结构,也可以返回一个指向局部数据结构的引用Vsftp:/root/perl/18# cat a1.pl use Data::Dumper; sub new_emp... 阅读全文
posted @ 2016-12-02 16:33 czcb 阅读(96) 评论(0) 推荐(0) 编辑
摘要:centos6.5:/root/podinns/lib#cat First.pm package First;use base qw(Second);sub new { my $self = {}; my $invocant = shift; my $class =... 阅读全文
posted @ 2016-12-02 12:48 czcb 阅读(128) 评论(0) 推荐(0) 编辑
摘要:Vsftp:/root/perl/7# cat scan1.pm package scan1; require Exporter; @ISA = qw(Exporter); @EXPORT_OK = qw(fun1 frobnicate); ###导出fun1函数 s... 阅读全文
posted @ 2016-12-02 11:32 czcb 阅读(93) 评论(0) 推荐(0) 编辑
摘要:Vsftp:/root/perl/17# cat Critter.pm package Critter; sub new { my $self = {}; my $invocant = shift; my $class = ref($invocant) || $i... 阅读全文
posted @ 2016-12-02 10:52 czcb 阅读(136) 评论(0) 推荐(0) 编辑
摘要:我们在设置数据库自动备份时,为了数据的安全往往需要直接将数据备份到远程服务器上。在Linux可以通过NFS挂载来实现,在Windows平台可以直接通过net use+subst来实现将远程服务器的目录挂载为本地磁盘进行读写操作。机器A:172.168.6.132 备份服务器。机器B:172.16... 阅读全文
posted @ 2016-12-01 19:03 czcb 阅读(1142) 评论(0) 推荐(0) 编辑
摘要:perl 允许你将代码划分成一个或多个可重用的模块1.使用关键字package 来定义模块2.使用use和require 来加载预定义模块3.使用"::" 记号来存取包的特定变量和子例程包的基本知识:关键词 package 标示着一个新的名字空间的开始,在它之后声明的所有的全局标识符(包括变量名... 阅读全文
posted @ 2016-12-01 17:12 czcb 阅读(152) 评论(0) 推荐(0) 编辑
摘要:{ "message" => "scan test 20161201", "@version" => "1", "@timestamp" => "2016-12-01T05:17:39.018Z", "path" => "/data01/gw/gw-... 阅读全文
posted @ 2016-12-01 13:20 czcb 阅读(199) 评论(0) 推荐(0) 编辑
摘要:字符串形式:表达式计算Vsftp:/root/perl/14# cat aa9512Vsftp:/root/perl/14# cat a1.pl open (A,aa);while ($line = ){ chomp $line; $str .=$line; ##将所有的行连接起来 p... 阅读全文
posted @ 2016-12-01 13:05 czcb 阅读(155) 评论(0) 推荐(0) 编辑
摘要:1. 调度表(dispatch table) tk图形用户界面工具包my (@frames,@button); my %sub_of = ( "日志查询" => \&push_button2 , "VIEW MEMORY" => \&push_button... 阅读全文
posted @ 2016-12-01 10:01 czcb 阅读(178) 评论(0) 推荐(0) 编辑