安装git yum -y install git
下载swoole git clone https://gitee.com/swoole/swoole.git
phpize目录

执行phpize /home/work/study/soft/php/bin/phpize

命令行提升Cannot find autoconf
安装autoconf yum -y install autoconf
安装好autoconf后 执行phpize /home/work/study/soft/php/bin/phpize 会生成configure文件

用于configure 编译需要gcc 安装gcc yum install gcc-c++
执行configure ./configure --with-php-config=/home/work/study/soft/php/bin/php-config
make
make install
修改php.ini 添加extension=swoole
查看swoole是否安装成功 php -m
网友评论