Replies: 1 comment
-
最好创建一个可复现问题的项目传到 Github 上,以便快速的帮你排查问题 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
刚把hyperf框架从2.1升级成2.2 但是发现启动的时候报错了
经过排查发现,当我把config/autoload/server.php 文件中的 settings.task_enable_coroutine 设置为 false 时就会出现以下错误
WARNING check_worker_exit_status: worker#6[pid=6151] abnormal exit, status=255, signal=0
PHP Fatal error: Swoole\Coroutine::create(): Unable to use async-io in task processes, please set
task_enable_coroutine
to true in /home/vendor/hyperf/engine/src/Coroutine.php on line 46然后我把config/autoload/view.php文件中的mode 设置从Mode::SYNC修改为Mode::TASK 依然是同样的报错,
但是在2.1版本中是没有l类似的问题的。
最后把config/autoload/server.php 文件中的 settings.task_enable_coroutine 设置为true的时候框架正常启动,没有报错。
以下是我的配置文件信息
server.php:
view.php
本人刚开始上手hyperf还是不太了解这个框架,请大神给一个解决问题的思路,谢谢
Beta Was this translation helpful? Give feedback.
All reactions