获取swoole版本号,查看swoole版本

版权声明:图文并茂的微信小程序教程!欢迎转载,请保留作者名字和链接;商业合作请联系子恒老师助理 QQ : 2334512685 https://blog.csdn.net/towtotow/article/details/82955695

由于时间间隔太久,
忘记了安装的swoole是哪个版本,

或者是在别人的系统里开发,
需要知道当前swoole版本,
可以使用下面的方法:

new version

一、 方法1 查看swoole版本

php -r 'echo SWOOLE_VERSION;'

4.0.3

一、 方法2 获取swoole版本

php --ri swoole

这个除了返回swoole版本号之外,
还会返回你安装swoole扩展的更多信息

swoole support => enabled
Version => 4.0.3
Author => Swoole Group[email: [email protected]]
coroutine => enabled
epoll => enabled
eventfd => enabled
timerfd => enabled
signalfd => enabled
cpu affinity => enabled
spinlock => enabled
rwlock => enabled
async redis client => enabled
async http/websocket client => enabled
sockets => enabled
openssl => enabled
pcre => enabled
zlib => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled

Directive => Local Value => Master Value
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 => 123456 => 123456

猛击这里
观看子恒老师《微信小程序开发入门》系列视频
了解实现过程和下载相关源代码

猜你喜欢

转载自blog.csdn.net/towtotow/article/details/82955695