#放入后台执行该pl,并且添加为开机自启动,或者加在nginx启动的时候,可以考虑修改fastcgi_nginx_ctl.sh的start函数和stop函数 #启动: /usr/local/nginx/sbin/cgiwrap-fcgi.pl &> /home/web/logs/perl-fcgi.log & #关闭: kill `ps -ef | grep "perl-fcgi-pm" | grep -v grep | awk '{print $2}'` for i in `ps -ef | grep "perl-fcgi" | grep -v grep | awk '{print $2}'`; do kill -9 $i; done;