下载swoole源码:
wget https://wenda-1252906962.file.myqcloud.com/dist/swoole-src-5.0.2.tar.gz
tar -zxvf swoole-src-5.0.2.tar.gz
cd swoole-src-5.0.2/
初始化:
/www/server/php/82/bin/phpize
配置检查:
./configure --with-php-config=/www/server/php/82/bin/php-config
编译和安装:
make && make install
php.ini文件末尾加上扩展:
php -m查看安装的模块:
php --ri swoole查看swoole的安装信息: