关于windows 版本的workerman的问题

darkroom

我下载了windows版本的workerman,当通过cmd运行了workmand.bat时,提示Fatal error: Class 'Stackable' not found in C:\Users\Administrator\Downloads\wor
kerman-for-win-master\workerman-for-win-master\workerman\Core\Master.php on line
206
请问是什么问题,有php扩展没安装的原因?

9760 3 0
3个回答

darkroom

似乎是pthread扩展未安装的问题,我安装了扩展,运行后出现了另外的问题:

PHP Fatal error:  Uncaught exception 'RuntimeException' with message 'pthreads d
etected an attempt to connect to a Threaded which has already been destroyed' in
 C:\Users\Administrator\Downloads\workerman-for-win-master\workerman-for-win-mas
ter\workerman\Core\Master.php:317
Stack trace:
#0 C:\Users\Administrator\Downloads\workerman-for-win-master\workerman-for-win-m
aster\workerman\Core\Master.php(317): Man\Core\Master::createWorkers()
#1 C:\Users\Administrator\Downloads\workerman-for-win-master\workerman-for-win-m
aster\workerman\Core\Master.php(173): Man\Core\Master::createWorkers()
#2 C:\Users\Administrator\Downloads\workerman-for-win-master\workerman-for-win-m
aster\workerman\bin\start.php(88): Man\Core\Master::run('')
#3 {main}
  thrown in C:\Users\Administrator\Downloads\workerman-for-win-master\workerman-
for-win-master\workerman\Core\Master.php on line 317
  • 暂无评论
walkor 打赏

对,需要安装pthreads扩展,README里面有说明

  • darkroom 2014-10-10

    上面的那个回复也是我发的,开始是未安装pthreads扩展,后来我安装了,报另外的错误,错误见一楼。

  • walkor 2014-10-10

    这个错误没遇到过,用linux版本的吧,win版本的好久没维护了。

  • darkroom 2014-10-10

    linux版本我运行起来倒是没啥问题,就是写代码联调太麻烦,习惯在windows写,然后还得copy到linux内,有啥好办法没。

  • walkor 2014-10-10

    可以linux建立个samba

  • darkroom 2014-10-11

    好的,linux不太熟,我去试试。谢谢啊

gysidon

还有windows版?
我找半天没找到!

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