php如何查看swoole的版本及相关信息

发布时间:2021-12-27 11:54:03 阅读:1780次

最近在学习swoole框架,我选择的是hyperf

在安装的时候碰到问题

所以我排查了一下,比如如何查看swoole的版本

可以通过

php --ri swoole

或

php -r "phpinfo();" |grep swoole

运行如下

[root@iZbp13ph356ra22ldly01lZ hyperf-skeleton]# php --ri swoole

swoole

Swoole => enabled
Author => Swoole Team <team@swoole.com>
Version => 4.8.3
Built => Dec 27 2021 11:39:58
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.7
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
[root@iZbp13ph356ra22ldly01lZ hyperf-skeleton]# php -r "phpinfo();" |grep swoole
swoole
Author => Swoole Team <team@swoole.com>
swoole.display_errors => On => On
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608
swoole.use_shortname => On => On

如有问题,可以QQ搜索群1028468525加入群聊,欢迎一起研究技术

支付宝 微信

有疑问联系站长,请联系QQ:QQ咨询

转载请注明:php如何查看swoole的版本及相关信息 出自老鄢博客 | 欢迎分享