Nginx支持perl等cgi脚本的方法
需要环境: perl -MCPAN -e ‘install FCGI’ perl -MCPAN -e ‘install FCGI::ProcManager’ 1,利用perl产生一个sock vi ~/cgi.pl #!/usr/bin/perl -w use FCGI; use Socket; use FCGI::ProcManager; sub shutdown { FCGI::CloseSocket($socket); exit; } sub rest[……]