Monthly Archives: October 2013

iptables自定义链的使用

By | 2013-10-11

iptables中,target/jump决定了符合条件的包到何处去,语法是–jump target或-j target。 通过-N参数创建自定义链: iptables -N BLOCK 之后将BLOCK链作为jump的目标: iptables -I INPUT 6 -p tcp –dport 80 -i p3p1 -j BLOCK 如下: [root@cz ~]# iptables -vnL Chain INPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt inout source destination 230K 118M ACCEPT all– * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 2939 247K ACCEPT icmp… Read More »

Keep your slave warm

By | 2013-10-11

Keep your slave warm note: pt-query-digest 2.2.x had removed this function. # pt-query-digest –version pt-query-digest 2.1.9 workflow: filter select sql replay sql on slave | master |——————->| text file |———————->| slave |