1、下载
wget http://pecl.php.net/get/swoole-4.4.3.tgz
2、解压
tar zxvf swoole-4.4.3.tgz
3、进入 swoole目录
cd swoole-4.4.3/
4、初始化
/usr/local/lighthouse/softwares/php/bin/phpize
5、编译
./configure --enable-openssl --enable-sockets --enable-http2 --enable-mysqlnd --with-php-config=/usr/local/lighthouse/softwares/php/bin/php-config
6、安装
make && make install
7、查看扩展
php -m 查看是否有swoole扩展