摘要:
由于工作需要,写了个小脚本,用于把所有文件夹下的文件,每个都放入以他们自己名字命名的文件夹中,并且文件夹名字不能有空格。包括子目录。#!perl(my $thisfile)=$0=~/.*\\(.*)/;my @curfile=grep { $_ ne $thisfile } glob('*');&action(\@curfile);sub action { my $test=shift; for my $file(@$test) { if (-d $file){ chdir $file; my @subfile = gl... 阅读全文
摘要:
URL:PHP-FPM on highload tipsWhen you running a highload website with PHP-FPM via FastCGI, the following tips may be useful to you : )1. Compile PHP's modules as less as possible, the simple the best(fast);2. Increas PHP FastCGI child number to 100 and even more. Sometime,200 is OK! ( On 4GB memo 阅读全文