1、下载swoole
安装环境 centos7 、php7.2
wget https://pecl.php.net/get/swoole-4.8.9.tgz
2、解压swoole
tar zxvf swoole-4.8.9.tgz
3、进入swoole目录
cd swoole-4.8.9
4、phpize编译
phpize
Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
5、进行配置 ./configure
./configure
[root@localhost swoole-4.8.9]# ./configure
checking for grep that handles long lines and -e... /usr/bin/grep