GatewayWorker启动代码报错

0

我下载了官方的gatewayWorker的源码,保存到了本地,然后直接在根目录下执行如下命令:


php start.php start


结果报错,如下:


PHP Fatal error: Uncaught Error: Class 'GatewayWorker\BusinessWorker' not found in /root/Gateway/Applications/YourApp/start_businessworker.php:24
Stack trace:


0 /root/Gateway/start.php(34): require_once()


1 {main}


thrown in /root/Gateway/Applications/YourApp/start_businessworker.php on line 24


Fatal error: Uncaught Error: Class 'GatewayWorker\BusinessWorker' not found in /root/Gateway/Applications/YourApp/start_businessworker.php on line 24


Error: Class 'GatewayWorker\BusinessWorker' not found in /root/Gateway/Applications/YourApp/start_businessworker.php on line 24


Call Stack:
0.0001 1343432 1. {main}() /root/Gateway/start.php:0
0.0009 1406112 2. require_once('/root/Gateway/Applications/YourApp/start_businessworker.php') /root/Gateway/start.php:34


另外我用phpstorm打开start_businessworker.php这个文件,头部提示如附件图片,代码有一个类没找到,另外有两个类用不上。

2021-08-02_14-45-25屏幕截图.png
已邀请:

静默

赞同来自:

源码是一个框架,要composer安装才能用。
不会的话直接到官网下载个例子用 http://doc2.workerman.net/

要回复问题请先登录注册