一、安装 首先通过 composer 安装 composer require topthink/think-worker 报错: 分析:最新版本需要TP8,或装低版本的 composer require topthink/think-worker:^3.* 安装后, 增加目录 vendor\workerman vendor\topthink\think-worker 及config目录下的 gateway_worker.php worker.php worker_server.php