通过composer create-project swoft/swoft swoft安装
php --ri swoole中已经显示redis client => enabled
但php bin/swoft app:check中显示Swoole async redis is enabled? No
root@DESKTOP-8LIAALC:/home/app/swoft2# php --ri swoole
swoole
swoole support => enabled
Version => 4.2.1
Author => Swoole Group[email: team@swoole.com]
coroutine => enabled
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu affinity => enabled
spinlock => enabled
rwlock => enabled
zlib => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
redis client => enabled
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.aio_thread_num => 2 => 2
swoole.display_errors => On => On
swoole.use_namespace => On => On
swoole.use_shortname => On => On
swoole.fast_serialize => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608
root@DESKTOP-8LIAALC:/home/app/swoft2# php bin/swoft app:check
PHP Warning: Declaration of Swoft\Testing\SwooleResponse::status($code) should be compatible with Swoole\Http\Response::status($http_code, $reason = NULL) in /home/app/swoft2/vendor/swoft/framework/src/Testing/SwooleResponse.php on line 80
Warning: Declaration of Swoft\Testing\SwooleResponse::status($code) should be compatible with Swoole\Http\Response::status($http_code, $reason = NULL) in /home/app/swoft2/vendor/swoft/framework/src/Testing/SwooleResponse.php on line 80
Runtime environment check
PHP version is greater than 7? Yes (current is 7.2.10)
Swoole extension is installed? Yes
Swoole version is greater than 2.1? Yes (current is 4.2.1)
Swoole async redis is enabled? No
Swoole coroutine is enabled? Yes
Extensions that conflict with 'swoole'
- zend Yes
- xdebug Yes
- xhprof Yes
- blackfire Yes
Check total: 9, Pass the check: 8
php --ri swoole
)php -v
)Details