1.下载Test-Nginx
wget http://search.cpan.org/CPAN/authors/id/A/AG/AGENT/Test-Nginx-0.25.tar.gz
2.安装依赖项目
yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker
yum install perl-CPAN
yum install perl-Test-Base
3. 安装Test-Nginx
perl Makefile.PL
make
make install