GatewayWorker启动代码报错

小七他哥

我下载了官方的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这个文件,头部提示如附件图片,代码有一个类没找到,另外有两个类用不上。

1526 1 0
1个回答

静默

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

  • 暂无评论
年代过于久远,无法发表回答
×
🔝