最近在学习`swoole框架`,我选择的是`hyperf`
在安装的时候碰到问题
所以我排查了一下,比如如何查看swoole的版本
可以通过
```
php --ri swoole
或
php -r "phpinfo();" |grep swoole
```
运行如下
```
[root@iZbp13ph356ra22ldly01lZ hyperf-skeleton]# php --ri swoole
swoole
Swoole => enabled
Author => Swoole Team
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
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
```