TP5如何实现WorkerMan与GatewayWorker的完美整合?
- 内容介绍
- 文章标签
- 相关推荐
本文共计1100个文字,预计阅读时间需要5分钟。
相关专题
tp5整合gatewayworker
Windows版安装
a)使用composer create-project topthink/think testTG,来安装thinkphp5.
b)进入thinkphp5的目录,此处为testTG,使用composer require workerman/gateway-worker-for-win 安装Windows版本的gateway。
c)去官网下载Windows版的gateway-worker,里面有demo。http://www.workerman.net/download
d)将下载的压缩包解压,将Applications/Yourapp中的文件全部复制到thinkphp5目录application里面的任意文件夹,这里取名为push。
e)将解压后的文件夹中的start_for_win.bat复制到thinkphp5的根目录,即与application同级的目录。
f)右键start_for_win.bat,点编辑,将里面的目录改成自己的目录,这里改为
php application\push\start_register.php application\push\start_gateway.php application\push\start_businessworker.php Pause
g)保存退出。双击运行。
本文共计1100个文字,预计阅读时间需要5分钟。
相关专题
tp5整合gatewayworker
Windows版安装
a)使用composer create-project topthink/think testTG,来安装thinkphp5.
b)进入thinkphp5的目录,此处为testTG,使用composer require workerman/gateway-worker-for-win 安装Windows版本的gateway。
c)去官网下载Windows版的gateway-worker,里面有demo。http://www.workerman.net/download
d)将下载的压缩包解压,将Applications/Yourapp中的文件全部复制到thinkphp5目录application里面的任意文件夹,这里取名为push。
e)将解压后的文件夹中的start_for_win.bat复制到thinkphp5的根目录,即与application同级的目录。
f)右键start_for_win.bat,点编辑,将里面的目录改成自己的目录,这里改为
php application\push\start_register.php application\push\start_gateway.php application\push\start_businessworker.php Pause
g)保存退出。双击运行。

