PHP Fatal error: Swoole\Coroutine\Channel::__construct(): Unable to use async-io in task processes, please set task_async
to true. in /www/wwwroot/xxxx/vendor/thinkcmf/cmf-swoole/src/Http.php on line 141
Fatal error: Swoole\Coroutine\Channel::__construct(): Unable to use async-io in task processes, please set task_async
to true. in /www/wwwroot/xxxx/vendor/thinkcmf/cmf-swoole/src/Http.php on line 141
官方文档 https://wiki.swoole.com/wiki/page/1014.html
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
配置
刚接触不知道如何处理?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.