如何将TP5与WorkerMan和GatewayWorker实现高效整合?
- 内容介绍
- 文章标签
- 相关推荐
本文共计1185个文字,预计阅读时间需要5分钟。
使用TP5整合GatewayWorker在Windows上安装:
1.使用composer安装ThinkPHP5,命令:`composer create-project topthink/think testTG`
2.进入testTG目录,使用composer安装Windows版本的GatewayWorker,命令:`composer require workerman/gateway-worker-for-win`
TP5整合GatewayWorkerWindows版安装
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。www.workerman.net/download
d)将下载的压缩包解压,将Applications/Yourapp中的文件全部复制到thinkphp5目录application里面的任意文件夹,这里取名为push。
本文共计1185个文字,预计阅读时间需要5分钟。
使用TP5整合GatewayWorker在Windows上安装:
1.使用composer安装ThinkPHP5,命令:`composer create-project topthink/think testTG`
2.进入testTG目录,使用composer安装Windows版本的GatewayWorker,命令:`composer require workerman/gateway-worker-for-win`
TP5整合GatewayWorkerWindows版安装
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。www.workerman.net/download
d)将下载的压缩包解压,将Applications/Yourapp中的文件全部复制到thinkphp5目录application里面的任意文件夹,这里取名为push。

