php m 报错,php Server.php 启动后主页报错

Fatal error: Uncaught Swoole\Exception: Swoole\WebSocket\Server can only be used in CLI mode in /Users/apple/localhost_apache/laravel_swoole/chat_server/Server.php:8 Stack trace: #0 /Users/apple/localhost_apache/laravel_swoole/chat_server/Server.php(8): Swoole\Server->__construct('0.0.0.0', 9501) #1:启动不了耶 /Users/apple/localhost_apache/laravel_swoole/vendor/composer/autoload_real.php(66): require('/Users/apple/lo...') #2:php Server.php 启动后主页报错 /Users/apple/localhost_apache/laravel_swoole/vendor/composer/autoload_real.php(56): composerRequire6dc0e0193d360184440b771cd3e561b6('a30bbd571c5d787...', '/Users/apple/lo...') #3:启动不了 /Users/apple/localhost_apache/laravel_swoole/vendor/autoload.php(7): ComposerAutoloaderInit6dc0e0193d360184440b771cd3e561b6::getLoader() #4 /Users/apple/localhost_apache/laravel_swoole/public/index.php(24): require('/Users/apple/lo...') #5 {main} thrown in /Users/apple/localhost_apache/laravel_swoole/chat_server/Server.php on line 8

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值