NGINX 运行 PHP正常,运行CGI出现 The page you are looking for is temporarily unavailable 错误

好不容易搭建的环境,运行Php正常,进行cgi文件运行测试时出现:

The page you are looking for is temporarily unavailable.
Please try again later.

去看日志文件perl-fcgi.log ,发现提示:

[2012-07-13 16:46]   Starting Nginx-cfgi
[2012-07-13 16:46]   Running with 99 UID
[2012-07-13 16:46]   Perl 5.008008
[2012-07-13 16:46]   Testing socket options
[2012-07-13 16:46]   Deamon listening at UNIX socket /opt/nginx/logs/perl-fcgi.sock
[2012-07-13 16:46]   Can not use PID file /opt/nginx/logs/perl-fcgi.pid, already exists.
 

说是perl-fcgi.pid已经存在,这意思难道是之前系统非正常停止导致的?

那就先./start_perl_cgi.sh stop ,然后再./start_perl_cgi.sh start ,居然恢复正常了。

 

 

本文出自 “我爱CTO” 博客,谢绝转载!

你可能感兴趣的:(cgi,错误,不可用)