webman/event 和webman/console 有兼容问题

{ "name": "workerman/webman", "type": "project", "keywords": [ "high performance", "http service" ], "homepage": "https://www...

永不言弃 发表与 28天前 164 浏览 1 回答
生产环境 Linux 使用 webman 无法操作 Redis 数据库

问题描述 情况1:(Windows)本地 webman + ThinkCache 组件使用 Redis 驱动,正常。 情况2:(Linux)服务器 webman + ThinkCache 组件使用 Redis 驱动,无反应,不报错。 情况3:(Linux)服务器 webman + 自己写连接,不用组件,无反应,不报错。 情况4:(Linux)服务器 普通PHP脚本 + 自己写连接,不用组件,正常。 问题会出在哪里? ...

Best 发表与 2026-01-04 366 浏览 3 回答
request()->host()无法获取访问域名问题

问题描述 由于端口原因域名需要使用非80的端口,xxx.xxx.com:8080 这种,webman没有原生$_SERVER获取访问域名,通过文档的request()->host()说是可以获取访问域名但是一直拿到的是配置的ip,通过request()->header()可以看到域名但是没有追加的8080端口,问一下大佬们 webman里面怎么自动获取访问域名的全地址啊?...

会飞的鱼 发表与 2025-12-25 365 浏览 2 回答
间歇性出现报错 Failed to open directory

问题描述 间歇性出现报错,重启就能解决,已调整linux 内核 报错信息 ErrorException: scandir(/www/wwwroot/110.42.57.86_3111/app): Failed to open directory: Too many open files in /www/wwwroot/110.42.57.86_3111/vendor/workerman/webman-framewor...

kid1296 发表与 2025-12-22 248 浏览 1 回答
webmanadmin过期状态不生效

问题描述 只改了 cookie_lifetime 为 0,其余为默认的没动,关闭浏览器后自动失效cookie登录状态,但是没生效。 <?php /** * This file is part of webman. * * Licensed under The MIT License * For full copyright and license information, please see the ...

tomlibao 发表与 2025-11-11 270 浏览 1 回答
session感觉是不是有bug

问题描述 我写了两个方法,一个用于存储session,一个用于获取session,无论怎么存,获取到都是最开始旧的那个数据,一旦我停止php start.php stop,再启动,他就会重新存一次,最后我使用了$session->save();,才得到解决,文档中有说什么session对象销毁时会自动保存session数据,可是我都压根不知道在哪里销毁的,文档也没有说,就连最简单的验证码功能都是这样的问题,一个...

xbb1314159 发表与 2025-11-08 649 浏览 3 回答
请问Allowed memory size of 这种超内存,怎么避免整个系统崩了

问题描述 有时候读取大的excel就会造成超过内存上限,然后整个webman都崩了,怎么不要让整个系统崩。...

海盗船长 发表与 2025-11-02 647 浏览 2 回答
webman-admin 验证码类提示过期错误

问题描述 这里详细描述问题 1、验证码类提示过期: Webman\Captcha\CaptchaBuilder::__construct(): Implicitly marking parameter $builder as nullable is deprecated, the explicit nullable type must be used instead 2、edge 登录后不能正常跳转,谷歌浏览器没问题...

alex.long 发表与 2025-11-02 347 浏览 2 回答
使用限流器不能捕捉异常

问题描述 使用官方的限流器,无法自己捕捉异常。直接请求api是对的,用axios访问时候触发异常就报跨域错误了 postman请求是正常的 axios请求触发限流就报跨域 我怀疑是这个官方限流器response被清空了 有大佬知道吗 这里详细描述问题 程序代码 #[RateLimiter(limit: 1, ttl: 60, message: 'Request limit reached. Please try...

超龄码农 发表与 2025-09-28 508 浏览 2 回答
webman压测一个接口为啥那么慢?

问题描述 服务器2核4g 宝塔部署异步项目 用localhost不考虑网络问题 ab -n 10000 -c 5000 -k localhost:8787/hi 这里写问题具体描述 ...

超龄码农 发表与 2025-09-21 1132 浏览 3 回答
官方限流器 设置过期时间无效

问题描述 这里写描述 $decaySeconds = 60; Limiter::check($key, $maxAttempts, $decaySeconds, $message); ...

超龄码农 发表与 2025-09-21 696 浏览 1 回答
webman协程问题

问题描述 这里写问题描述 我使用协程事件驱动时,访问8787的index页面主进程并未直接返回response的结果,而是等待协程进程执行完毕后才返回结果 public function index(Request $request) { Coroutine::create(function(){ Timer::sleep(5); echo "h...

胡作非为还响桃 发表与 2025-09-04 488 浏览 2 回答
workerman长连接2个方向

问题描述 workerman的长连接 方向 1.平滑重启服务 重启不断开ws长连接 转发到task处理 每次只重启task 2.任意线程都可以向任意长连接发ws数据包,关闭链接 (unixSocket远程调用) 2个方向有没有搞头...

xhxx 发表与 2025-08-23 482 浏览 2 回答
想在thinkphp8的基础上不改变老项目实现与webman 并存

问题描述 想实现的效果:想在thinkphp8的基础上不改变老项目实现与webman 并存 情况介绍:原项目 是用 thinkphp8 开发的 项目很大 ,现在用户端 经常出现 cpu 100% 打满的情况 ,如果说整体迁移到webman 会不习惯 并且 工程量比较大; 可行的 解决方案: .部分高并发的 接口使用 webman 单独成立项目 开发 和 thinkphp 部署在 同一服务器,并通过 nginx 转发 ...

xb 发表与 2025-08-20 1433 浏览 6 回答
$request->sessionId()刷新页面就会变化

问题描述 获取请求sessionId $request->sessionId(); 刷新页面就会发生变化,同一个浏览器同一个页面刷新就变。这个是配置问题吗? <?php /** * This file is part of webman. * * Licensed under The MIT License * For full copyright and license information...

moco 发表与 2025-07-25 681 浏览 7 回答
webman2.1好像无法使用webman/redis-queue

问题描述 这里详细描述问题 最新版webman2.1使用以下这两个依赖包时报这个错误 webman/redis-queue illuminate/redis 报错信息 ...

楚羽幽 发表与 2025-02-26 849 浏览 2 回答
请教:网站部分静态资源的路由配置

问题描述 我的项目使用了多应用插件,这是我正常的路由【1】 Route::group('/test', function () { Route::get('/',[app\test\controller\TestController::class, 'index']); }} 这是我有问题的路由【2】 Route::group('/test', function () { Route::get('/', functi...

lyiply 发表与 2025-02-06 768 浏览 2 回答
请问 php start.php start 命令面板如何展示进程号?

现在是这样的: 能否在这里面展示一下进程号呢? 因为我的 log 里内容是这样的: 2025-02-05 16:46:54 pid:8474 Workerman[start.php] restart 2025-02-05 16:46:54 pid:8474 Workerman[start.php] is stopping ... 2025-02-05 16:46:54 pid:8474 Workerman[sta...

小七他哥 发表与 2025-02-05 723 浏览 1 回答
composer require -W webman/think-cache 安装报错

./composer.json has been updated Running composer update webman/think-cache --with-all-dependencies Loading composer repositories with package information Updating dependencies Your requirements could not be re...

learner 发表与 2025-01-18 1101 浏览 1 回答
webman文件报错

问题描述 webman 1.6.14 版本 多应用 请求报错,但是多刷新几次就不报错误了 ErrorException: include(/app/www/game/game_user/app/api/controller/userController.php): Failed to open stream: No such file or directory in /app/www/game/game_user/v...

zhou604638018 发表与 2025-01-17 662 浏览 1 回答

six

20107
积分
0
获赞数
0
粉丝数
2016-11-14 加入
🔝