fcgi.start执行错误的解决办法
fcgi.start执行错误。平时没问题。但是现在不行。解决办法?执行 fcgi.start
出现
PHP-CGI starting...
/bin/fcgi.start: line 11: spawn-fcgi: command not found
DONE.
fcgi.start 脚本代码如下#!/bin/sh
SPAWN=spawn-fcgi
PHP=/usr/bin/php-cgi
#PHP=/usr/local/php/bin/php-cgi
PORT=9000
PID=/var/run/fcgi.pid
ADDR=0.0.0.0
if [ -x ${PHP} ]; then
echo PHP-CGI starting...
${SPAWN} -C 5 -f ${PHP} -a ${ADDR} -p ${PORT} -P ${PID}
echo DONE.
else
echo Can not execute ${PHP}
fi---------------------------------------------------------------------------------------
执行 fcgi.shutdown
出现以下 提示
cat: /var/run/fcgi.pid: No such file or directory
PHP-CGI shutdown...
usage: kill [ -s signal | -p ] [ -a ] pid ...
kill -l [ signal ]
DONE.
fcgi.shutdown文件源码#!/bin/sh
SPAWN=spawn-fcgi
PHP=/usr/bin/php-cgi
PORT=9000
#PHP=/usr/local/php/bin/php-cgi
PID=/var/run/fcgi.pid
ADDR=0.0.0.0
if [ -x ${PHP} ]; then
echo PHP-CGI shutdown...`cat ${PID}`
ps aux | grep ${PHP} | grep -v grep | awk '{print $2}' | xargs kill -9
echo DONE.
else
echo Can not found ${PID}
fi
这2个脚本一直用着都没事去,今天装却不行.......................
页:
[1]