CentOS:棘手问题 spawn-fcgi: child exited with: 255

安装了 t1lib-5.1.0-9.el5.kb.x86_64.rpm & php-mysql 后,使用以下脚本启动fcgi,出错了,原来还好好的,查找原因中。。。

#spawn-fcgi

spawnfcgi_server(){
    echo "test"
    echo "eeee $1"
    spawnfcgi="/usr/bin/spawn-fcgi"
    php_cgi="/usr/bin/php-cgi"
    prog=$(basename $php_cgi)
    server_ip=127.0.0.1
    server_port=9000
    server_user=www
    server_group=www
    server_childs=5
    pidfile="/var/run/php_cgi.pid"
    [ -x $php_cgi ] || exit 1
    [ -x $spawnfcgi ] || exit 2
    
    case "$1" in
    start)
        echo "test2"
        echo "$spawnfcgi -a ${server_ip} -p ${server_port} -u ${server_user} -g ${server_group} -P ${pidfile} -C ${server_childs} -f ${php_cgi}"
        $spawnfcgi -a ${server_ip} -p ${server_port} -u ${server_user} -g ${server_group} -P ${pidfile} -C ${server_childs} -f ${php_cgi}
        ;;
    stop)
        pkill spawn-fcgi
        pkill php-cgi
        sleep 1
        ;;
    *)
        echo "Usage: spawnfcgi_server {start|stop}"
        exit 1
        ;;
    esac
}

你可能感兴趣的:(CentOS:棘手问题 spawn-fcgi: child exited with: 255)