安装
composer require topthink/think-worker
workerman/workerman-for-win(window 下 需要再执行)
报错1
[think\exception\ThrowableError]
Fatal error: Call to undefined function Workerman\Lib\pcntl_signal()
解决方法 :找到php.ini 中disable_functions 里去掉pcntl_signal报错2.
WebSocket connection to 'ws://www.xiaotai33.cn:2346/' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
解决方法:这个多数是因为端口或者域名有问题 检测端口有没有开,防火墙有没有设置具体内容请参考手册-扩展-composer包-workerman,欢迎加QQ769387485探讨
最佳答案
