FreeBSD系统运行 Workerman 还是会有问题

Alu

退出r的时候报错:
我可以提供线上服务器测试,扩展已安装 libevent-2.1.12

root@freebsd:/usr/local/www/Worker # php start.php start
Workerman[start.php] start in DEBUG mode
-------------------------------------------- WORKERMAN --------------------------------------------
Workerman version:4.0.18          PHP version:8.0.2
--------------------------------------------- WORKERS ---------------------------------------------
proto   user            worker           listen                      processes    status
tcp     root            ApisBusiness     none                        1             [OK]
tcp     root            ApisGateway      text://0.0.0.0:1120         1             [OK]
tcp     root            ApisRegister     text://0.0.0.0:1100         1             [OK]
tcp     root            ApisWebSocket    websocket://0.0.0.0:1110    1             [OK]
---------------------------------------------------------------------------------------------------
Press Ctrl+C to stop. Start success.
^CWorkerman[start.php] stopping ...

Warning: EventBase::loop(): Failed to invoke event callback in /usr/local/www/Worker/Workerman/Events/Event.php on line 195

Warning: EventBase::loop(): Failed to invoke event callback in /usr/local/www/Worker/Workerman/Events/Event.php on line 195
Workerman[start.php] has been stopped
root@freebsd:/usr/local/www/Worker #
root@freebsd:/usr/local/www/Worker # php start.php start
Workerman[start.php] start in DEBUG mode
-------------------------------------------- WORKERMAN --------------------------------------------
Workerman version:4.0.18          PHP version:8.0.2
--------------------------------------------- WORKERS ---------------------------------------------
proto   user            worker           listen                      processes    status
tcp     root            ApisBusiness     none                        1             [OK]
tcp     root            ApisGateway      text://0.0.0.0:1120         1             [OK]
tcp     root            ApisRegister     text://0.0.0.0:1100         1             [OK]
tcp     root            ApisWebSocket    websocket://0.0.0.0:1110    1             [OK]
---------------------------------------------------------------------------------------------------
Press Ctrl+C to stop. Start success.
^CWorkerman[start.php] stopping ...

Warning: EventBase::loop(): Failed to invoke event callback in /usr/local/www/Worker/Workerman/Events/Event.php on line 195

Warning: EventBase::loop(): Failed to invoke event callback in /usr/local/www/Worker/Workerman/Events/Event.php on line 195

Warning: EventBase::loop(): Failed to invoke event callback in /usr/local/www/Worker/Workerman/Events/Event.php on line 195

Warning: EventBase::loop(): Failed to invoke event callback in /usr/local/www/Worker/Workerman/Events/Event.php on line 195
Workerman[start.php] has been stopped
2051 2 0
2个回答

walkor 打赏

用php7试下。目前php8的event扩展还没出稳定版。另外php8.0.2小版本是2,也太新了,建议再出几个小版本后再用

  • Alu 2021-02-26

    好的,谢谢!

o4h534509

支持php8的event稳定版 3.0.2r1 出了, 试下

  • 暂无评论
年代过于久远,无法发表回答
×
🔝