cmf-swoole 启动报错?

cmf-swoole文档
https://www.kancloud.cn/thinkcmf/doc5_1/961711#_swoole_2

php错误
Fatal error: Swoole\Coroutine\Channel::__construct(): Unable to use async-io in task processes, please settask_asyncto true. in /www/wwwroot/xxxx/vendor/thinkcmf/cmf-swoole/src/Http.php on line 141

官方文档https://wiki.swoole.com/wiki/page/1014.html

php环境
php7.3.1
Nginx1.15.8

php --ri swoole
swoole support => enabled
Version => 4.2.10
Author => Swoole Group[email: team@swoole.com]
coroutine => enabled
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 1.0.2l 25 May 2017
pcre => enabled
zlib => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.aio_thread_num => 2 => 2
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.fast_serialize => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608

配置文件

阅读 1.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进