Welcome to Qi-U Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
51 views
in Technique[技术] by (71.8m points)

Uncaught Error: Class 'SwooleCoroutine' not found

安装启动报错: Uncaught Error: Class 'SwooleCoroutine' not found

小白一个 不明真相


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)

没装swoole,或者没有安装php对应版本的swoole扩展。

官方有说明,swoole>=4.4.1
https://github.com/swoole/swo...
下载最新版swoole,编译一下,会生成一个swoole.so

php -i |grep php.ini
找一下当前php版本的php.ini文件位置,并加上
extension=/你的路径/swoole.so

php -m | grep swoole
验证一下扩展是否安装上

再次
php ./bin/swoft http:start
即可


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Qi-U Community for programmer and developer-Open, Learning and Share
...