swoole扩展信息如下:
Swoole => enabled
Author => Swoole Team
Version => 4.8.5
Built => Apr 14 2022 10:24:04
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 1.0.2u 20 Dec 2019
pcre => enabled
zlib => 1.2.11
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
async_redis => enabled
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608
启动php think swoole的时候报错:
Starting swoole server...
PHP Fatal error: Uncaught Swoole\Exception: bind(0.0.0.0:20199) failed in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php:35
Stack trace:
#0 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php(35): Swoole\Coroutine\Http\Server->__construct('0.0.0.0', 20199, false, true)
#1 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithServer.php(99): think\swoole\Manager->createHttpServer(Object(Swoole\Process\Pool), 0)
#2 {main}
thrown in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php on line 35
PHP Fatal error: Uncaught Swoole\Exception: bind(0.0.0.0:20199) failed in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php:35
Stack trace:
#0 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php(35): Swoole\Coroutine\Http\Server->__construct('0.0.0.0', 20199, false, true)
#1 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithServer.php(99): think\swoole\Manager->createHttpServer(Object(Swoole\Process\Pool), 1)
#2 {main}
thrown in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php on line 35
PHP Fatal error: Uncaught Swoole\Exception: bind(0.0.0.0:20199) failed in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php:35
Stack trace:
#0 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php(35): Swoole\Coroutine\Http\Server->__construct('0.0.0.0', 20199, false, true)
#1 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithServer.php(99): think\swoole\Manager->createHttpServer(Object(Swoole\Process\Pool), 4)
#2 {main}
thrown in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php on line 35
PHP Fatal error: Uncaught Swoole\Exception: bind(0.0.0.0:20199) failed in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php:35
Stack trace:
#0 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php(35): Swoole\Coroutine\Http\Server->__construct('0.0.0.0', 20199, false, true)
#1 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithServer.php(99): think\swoole\Manager->createHttpServer(Object(Swoole\Process\Pool), 3)
#2 {main}
thrown in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php on line 35
PHP Fatal error: Uncaught Swoole\Exception: bind(0.0.0.0:20199) failed in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php:35
Stack trace:
#0 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php(35): Swoole\Coroutine\Http\Server->__construct('0.0.0.0', 20199, false, true)
#1 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithServer.php(99): think\swoole\Manager->createHttpServer(Object(Swoole\Process\Pool), 8)
#2 {main}
thrown in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php on line 35
PHP Fatal error: Uncaught Swoole\Error: API must be called in the coroutine in /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/output/driver/Console.php:203
Stack trace:
#0 /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/output/driver/Console.php(203): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array)
#1 /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/output/driver/Console.php(180): think\console\output\driver\Console->getSttyColumns()
#2 /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/output/driver/Console.php(145): think\console\output\driver\Console->getTerminalDimensions()
#3 /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/output/driver/Console.php(82): think\console\output\driver\Console->getTerminalWidth()
#4 /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/Output.php(167): think\console\output\driver\Console->renderException(Object(think\exception\ErrorExcept in /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/output/driver/Console.php on line 203
PHP Fatal error: Uncaught Swoole\Exception: bind(0.0.0.0:20199) failed in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php:35
Stack trace:
#0 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php(35): Swoole\Coroutine\Http\Server->__construct('0.0.0.0', 20199, false, true)
#1 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithServer.php(99): think\swoole\Manager->createHttpServer(Object(Swoole\Process\Pool), 7)
#2 {main}
thrown in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php on line 35
PHP Fatal error: Uncaught Swoole\Exception: bind(0.0.0.0:20199) failed in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php:35
Stack trace:
#0 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php(35): Swoole\Coroutine\Http\Server->__construct('0.0.0.0', 20199, false, true)
#1 /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithServer.php(99): think\swoole\Manager->createHttpServer(Object(Swoole\Process\Pool), 2)
#2 {main}
thrown in /www/wwwroot/drug.zeyan.wang/vendor/topthink/think-swoole/src/concerns/InteractsWithHttp.php on line 35
PHP Fatal error: Uncaught Swoole\Error: API must be called in the coroutine in /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/output/driver/Console.php:203
Stack trace:
#0 /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/output/driver/Console.php(203): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array)
#1 /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/output/driver/Console.php(180): think\console\output\driver\Console->getSttyColumns()
#2 /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/output/driver/Console.php(145): think\console\output\driver\Console->getTerminalDimensions()
#3 /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/output/driver/Console.php(82): think\console\output\driver\Console->getTerminalWidth()
#4 /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/Output.php(167): think\console\output\driver\Console->renderException(Object(think\exception\ErrorExcept in /www/wwwroot/drug.zeyan.wang/vendor/topthink/framework/src/think/console/output/driver/Console.php on line 203
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}