swoole安装

安装环境

操作系统:macos

安装swoole之前,先确保php版本大于等于7.0

☁  ~  php -v
PHP 7.0.29 (cli) (built: Apr 12 2018 03:15:13) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.29, Copyright (c) 1999-2017, by Zend Technologies

使用pecl安装swoole扩展

pecl install swoole

安装时,如果选择了redis, 系统需要安装redis及hiredis

验证swoole

☁  ~  php -m | grep swoole
swoole

也可通过phpinfo查看swoole

swoole安装_第1张图片
phpinfo查看swoole

你可能感兴趣的:(swoole安装)