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

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 |