安装完成启动失败 · Issue #62 · SwooleDistributed/SwooleDistributed · GitHub
Skip to content

安装完成启动失败 #62

Description

@cw58665466

先是在 Mac 上用 composer 安装SD,安装完成后出现以下错误

☁  bin  php start_swoole_server.php list
Warning: Illegal string offset 'config_version' in /Users/xxx/xxx/sd/vendor/hassankhan/config/src/Parser/Php.php(37) : eval()'d code on line 8

Fatal error: Uncaught Noodlehaus\Exception\UnsupportedFormatException: PHP string does not return an array in /Users/xxx/xxx/sd/vendor/hassankhan/config/src/Parser/Php.php:54
Stack trace:
#0 /Users/xxx/xxx/sd/vendor/hassankhan/config/src/Config.php(97): Noodlehaus\Parser\Php->parse('3/**\n * Created...')
#1 /Users/xxx/xxx/sd/vendor/hassankhan/config/src/Config.php(62): Noodlehaus\Config->loadFromFile('/Users/xxx...', Object(Noodlehaus\Parser\Php))
#2 /Users/xxx/xxx/sd/vendor/tmtbe/swooledistributed/src/Server/Console/ChannelCmd.php(31): Noodlehaus\Config->__construct('/Users/xxx...')
#3 /Users/xxx/xxx/sd/vendor/tmtbe/swooledistributed/src/Server/Start.php(124): Server\Console\ChannelCmd->__construct('ChannelCmd')
#4 /Users/xxx/xxx/sd/vendor/tmtbe/swooledistributed/src/Server/Start.php(102): Server\Start::addDirCommand('/Users/chenjunj...', 'Server', Object(Symfony\Component\Console\Application) in /Users/xxx/xxx/sd/vendor/hassankhan/config/src/Parser/Php.php on line 54

起初是认为 Mac 或者环境的问题,后在一台纯净的centos上用
curl -sS sd.youwoxing.net/install_v3 | bash
仍然出现这个问题。
请问如何解决。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions