• 本帖最后由 每次醒来 于 2013-4-5 00:44 编辑 *

执行 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个脚本一直用着都没事去,今天装却不行.......................

原因nginx网站脚本木有放