V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
madpecker009
V2EX  ›  PHP

关于 swoole 启动的问题,求教实在是不会弄了

  •  
  •   madpecker009 · Dec 26, 2020 · 3117 views
    This topic created in 1957 days ago, the information mentioned may be changed or developed.

    使用的是 php7.4, 框架是 tp5.1,按照文档上执行composer require topthink/think-swoole=2.0.*命令安装 swoole 以后执行php think swoole 报如下图所示的错误。 image.png
    swoole 扩展的信息如下
    image.png

    9 replies    2020-12-30 15:30:55 +08:00
    siys
        1
    siys  
       Dec 26, 2020
    emmmm 。首先不知道。然后建议标题取:thinkphp-swoole 怎么启动。让提问更有效率
    gIQgxDI09Jflpdc2
        2
    gIQgxDI09Jflpdc2  
       Dec 26, 2020
    你的 php 有装 swoole 扩展吗?不是指 TP 框架的扩展。
    php -m | grep swoole
    看看有没有结果。
    sagaxu
        3
    sagaxu  
       Dec 26, 2020 via Android
    提问的和回答的都不看报错信息吗?原因已经写明了。
    tujin
        4
    tujin  
       Dec 27, 2020
    thinkphp 跟 swoole 不能无缝切换吧,好像是要修改一些配置之类的
    madpecker009
        5
    madpecker009  
    OP
       Dec 28, 2020
    @sagaxu 看了啊 但是不知道怎么解决,网上的资料都是复制粘贴的
    madpecker009
        6
    madpecker009  
    OP
       Dec 28, 2020
    jeristiano
        7
    jeristiano  
       Dec 28, 2020
    应该是 swoole-server 的配置问题,建议从这个方向排查。
    shellic
        8
    shellic  
       Dec 28, 2020
    报错不是写了吗,unsupported option [host]
    Evilk
        9
    Evilk  
       Dec 30, 2020
    为什么要强行将完全不同类型的东西结合在一起?
    一个 php-fpm
    一个 swoole
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6004 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 76ms · UTC 03:27 · PVG 11:27 · LAX 20:27 · JFK 23:27
    ♥ Do have faith in what you're doing.