下载swoole源码:
git clone gitee.com/swoole/swoo… 执行phpize生成configure
/usr/local/php/bin/phpize 如果找不到phpize可以执行 find / -name phpize全局搜索一下 查找路径
cd swoole ./configure --with-php-config=/usr/local/bin/php-conf 然后执行make&&make install
make&&make install 要想php与swoole结合需要在php.ini中加入swoole拓展
可以执行php -m查看自己安装的拓展库
php -m
这样swoole就安装成功了。