Download the PHP package zoujingli/think-plugs-worker without Composer
On this page you can find all versions of the php package zoujingli/think-plugs-worker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zoujingli/think-plugs-worker
More information about zoujingli/think-plugs-worker
Files in zoujingli/think-plugs-worker
Package think-plugs-worker
Short Description Workerman HttpServer for ThinkAdmin
License Apache-2.0
Homepage https://thinkadmin.top
Informations about the package think-plugs-worker
ThinkPlugsWorker for ThinkAdmin
基于 Workerman 4.x 且支持多种通信协议的基础插件。
提示: 默认支持以 HTTP 方式直接启动 ThinkAdmin 项目,无需配置 Nginx 或 Apache 环境,访问速度提升 N 倍。
注意: 该插件支持 Workerman
或 Gateway
两种运行方式,默认只安装了 Workerman
组件,如果需要使用 Gateway
组件,请另行安装。
配置文件的根配置参数是启动 http 服务进程,用来运行 ThinkAdmin v6 程序。
如果需要使用其他协议,请使用并修改 customs
配置或追加配置,并通过指定 --custom name
配置名来启动对应服务进程。
加入我们
我们的代码仓库已移至 Github,而 Gitee 则仅作为国内镜像仓库,方便广大开发者获取和使用。若想提交 PR 或 ISSUE 请在 ThinkAdminDeveloper 仓库进行操作,如果在其他仓库操作或提交问题将无法处理!。
安装插件
卸载插件
配置参数
配置文件 config/worker.php
使用方法
在命令行启动服务端
然后就可以通过浏览器直接访问当前应用
默认使用 Workerman
工作方式,如果需要使用 Gateway
方式,需要安装 GatewayWorker
组件。
安装 GatewayWorker
的指令如下:
注意: 启用 Gateway
时需要单独启动三个进程,分别是 Gateway
、Register
、Business
,中间需要 Register
进程连接。
数据通信模型:
Client
<->
Gateway
<->
Register
<->
Business
<->
Events
Linux 支持操作指令如下:
Windows 支持操作指令如下:
其他 workerman 的参数可以在应用配置目录下的 worker.php 里面 worker 项配置。
更多其他特性请阅读 workerman 文档 https://www.workerman.net/doc/workerman
代理配置
Nginx 代理代理配置参考如下:
版权说明
ThinkPlugsWorker 遵循 Apache2 开源协议发布,并提供免费使用。
本项目包含的第三方源码和二进制文件之版权信息另行标注。
版权所有 Copyright © 2014-2024 by ThinkAdmin (https://thinkadmin.top) All rights reserved。
更多细节参阅 LICENSE.txt
All versions of think-plugs-worker with dependencies
workerman/workerman Version ^5.0|^4.1
zoujingli/think-install Version ^1.0|@dev
zoujingli/think-library Version ^6.1|@dev