excute error

i have tried to set up a LEMP server on debian5.The nginx works fine. Html files could be opened. But when i try to Deploy Perl and Conventional CGI Scripts as the libry told.I built '/usr/bin/ ' and '/etc/init.d/perl-fastcgi'. when i excute '/etc/init.d/perl-fastcgi start',it won't work.

errors are :

maoVPS:~# /etc/init.d/perl-fastcgi start
sudo: unable to resolve host maoVPS
/usr/bin/ line 4: use: command not found
/usr/bin/ line 5: use: command not found
/usr/bin/ line 6: syntax error near unexpected token `('
/usr/bin/ line 6: `use POSIX qw(setsid);'

help me ,pls

2 Replies

Dont use ngix/fast-cgi myself, but i can tell you those are shell, not perl errors. The script needs to either be invoked explicitly with perl (ie perl /path/to/ or make sure the shebang at the top of the script points to your perl bin, usually:


I use:


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct