ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
## 输出大于2M的文件 当使用 mix 输出生成的文件时,比如:图片,xlsx 等,因为 Swoole 默认只支持 2MB 的输出缓存区,因此需要配置 swoole 的 `buffer_output_size` 参数 [Swoole 文档](https://wiki.swoole.com/wiki/page/p-buffer_output_size.html)。 - 在 StartCommand::class 代码中增加该配置: ``` $server->set([ // 配置你需要的长度 'buffer_output_size' => 20 * 1024 * 1024, ]); ```