
Workerman
恶魔楚轩
各位观众姥爷们,欢迎点赞和评论指正哦
展开
-
thinkphp5+workerman集成workerman/mqtt爬坑笔记
1. thinkphp5.0安装workerman composer require topthink/think-worker=1.0.*(tp5.0安装workerman时要指定版本号,不然会报错)2. 安装workerman/mqttcomposer require workerman/mqtt按照官方文档http://doc3.workerman.net/69663...原创 2020-01-06 15:51:09 · 3549 阅读 · 1 评论 -
thinkphp6利用workerman实现定时任务
1.根据官方文档安装好workerman,配置好tp6配置文件2.贴执行文件代码<?phpnamespace app\http;use think\worker\Server;use Workerman\Lib\Timer;class Haha extends Server{ //写一个假的监听地址 protected $socket = 'http://127....原创 2020-04-13 14:32:11 · 3579 阅读 · 0 评论