摘要: nginx:一个master 多个workerresin:自动检测 ok.html是否存在,不存在就重启: 此重启是 原resin进程不会重启,重启的是nginx产生的线程ps -eLfroot 27231 1689 27590 0 74 18:57 ? 00:00:00 /data/web/jdk/bin/java -Dfile.encoding=UTF-8 -server -Xms8000M -Xmx8000M -Xmn5000M -Xss256K -XX:ThreadStackSize=256 -XX:StackShadowPages=8 -verbosegc -XX:+P... 阅读全文
posted @ 2013-01-17 19:07 Arya_yu 阅读(212) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/perl -wuse strict;use YAML::XS;my %hash;my %new;@hash{'a' .. 'm'} = 1 .. 13;@new{ 'n' .. 'z' } = 14 .. 26;print "Before change\n";map{ print "$_ => $hash{$_}\n"} sort keys %hash;@hash{ keys %new } = values %new;print "After chang 阅读全文
posted @ 2013-01-17 09:59 Arya_yu 阅读(367) 评论(0) 推荐(0) 编辑