[已解决]docker webman协程使用swoole报错Create io_uring failed

问题描述 阿里云 alios 3 快速启动镜像 使用swoole协程异常 日志一直滚.. 使用Fiber正常. docker-compose.yml services: your_service: privileged: true # 启用特权模式 解决问题 截图报错信息里报错文件相关代码 操作系统及workerman/webman等框架组件具体版本 workerman 5.1.1 php 8.3.2...

lsmir2 发表与 52分钟前 11 浏览 2 回答
[已解决] webman http-client 同步返回null

问题描述 程序代码或配置 public function httptest(): string { $url='https://baidu.com'; $http = new \Workerman\Http\Client(); $response=$http->get($url); return $response->get...

lsmir2 发表与 2025-02-24 424 浏览 1 回答
webman/log 配置 不需要记录的插件日志

问题描述 app.php 我看到有dontReport配置, 我想屏蔽 tinywan/jwt 调用redis的日志 我这么写不起作用. <?php return [ 'enable' => true, 'exception' => [...], 'dontReport' => [ 'app' => [ ], 'con...

lsmir2 发表与 2025-01-26 302 浏览 1 回答
[已解决]webman Cache 使用file,或array报错

问题描述 如题 仍需要 composer require -W illuminate/redis 否则报错 另外一个问题是关于使用 array 类型缓存 public static function index() { $cacheKey = 'watchlist'; if (!Cache::has($cacheKey)) { //从数据库中返回第一条数据 ...

lsmir2 发表与 2024-09-25 391 浏览 1 回答
webman 使用 http-client 携程请求

问题描述 webman 使用 http-client 携程请求 参考https://www.workerman.net/q/10702 composer require workerman/workerman v5.0.0-beta.7 revolt/event-loop ^1.0.0 workerman/http-client ^2.0.0 public static function RequestPost(s...

lsmir2 发表与 2024-06-08 1745 浏览 2 回答
【已解决】webman 路由 /admin//login 控制台报错 Worker [xxxx] process terminated with ERROR: E_COMPILE_ERROR

问题描述 起因是调试接口在 我在请求地址控制器后面多打了一个斜杆 127.0.0.1:8787/admin//login/refreshToken 程序代码 config/route.php <?php use Webman\Route; Route::fallback(function () { // 处理跨域 options 请求 response()->withHeaders([ ...

lsmir2 发表与 2024-05-26 695 浏览 1 回答

lsmir2

1000
积分
0
获赞数
0
粉丝数
2024-01-29 加入
×
🔝