Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tp5.1 启动报错 #30

Open
hbh112233abc opened this issue Mar 7, 2019 · 0 comments
Open

tp5.1 启动报错 #30

hbh112233abc opened this issue Mar 7, 2019 · 0 comments

Comments

@hbh112233abc
Copy link

hbh112233abc commented Mar 7, 2019

windows系统启动php think work:server
报错信息如下:
[think\exception\ErrorException] Cannot use Workerman\Worker as Worker because the name is already in use
解决办法:
找到目录:
\vendor\topthink\think-worker\src\command\Server.php

找到命名空间:
use Workerman\Worker;
修改为:
use Workerman\Worker as Worker2;
紧接着修改 119 行与 126的 worker 改为 Worker2

找到目录:
\vendor\topthink\think-worker\src\command\GatewayWorker.php

找到命名空间
use Workerman\Worker;
修改为:
use Workerman\Worker as Worker3;

linux centos系统没有以上错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant