think-swoole 坑爹项

 端口是80的时候,启动报错如下

 报错信息:PHP Fatal error:  Uncaught Swoole\Exception: bind(0.0.0.0:80) failed in /work/tp6/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php:37

Stack trace:
#0 /work/tp6/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php(37): Swoole\Coroutine\Http\Server->__construct()
#1 /work/tp6/vendor/topthink/think-swoole/src/concerns/InteractsWithServer.php(96): think\swoole\Manager->createHttpServer()
#2 {main}
  thrown in /work/tp6/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php on line 37
PHP Fatal error:  Uncaught Swoole\Exception: bind(0.0.0.0:80) failed in /work/tp6/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php:37
Stack trace:

端口为1880,启动成功

猜你喜欢

转载自blog.csdn.net/qq_34861341/article/details/126302388