用AI赚第一桶💰低成本搭建一套AI赚钱工具,源码可二开。 广告
## 如何开启协程 >[danger] 需 Swoole >= 4.2.2 才可开启。 MixPHP 默认是关闭协程的,可按下面操作开启协程。 打开 `mix-httpd` 服务器的配置文件: ~~~txt apps/httpd/config/httpd.php ~~~ [>> 到 GitHub 查看 mix-httpd 配置 <<](https://github.com/mix-php/mix/blob/v1/apps/httpd/config/httpd.php#L71) - 将 `enable_coroutine` 设置为 `true`。 - 将 `configFile` 修改为协程专用配置文件的路径:`__DIR__ . '/http_coroutine.php'`。 [>> 到 GitHub 查看协程配置文件有什么不一样 <<](https://github.com/mix-php/mix/blob/v1/apps/httpd/config/http_coroutine.php) 重新启动 `mix-httpd` 即可。