主机头
标题:
fcgi.start执行错误的解决办法
[打印本页]
作者:
admin
时间:
2013-4-5 00:07
标题:
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个脚本一直用着都没事去,今天装却不行.......................
欢迎光临 主机头 (http://zhujitou.com/)
Powered by Discuz! X2.5