计算机网络/计算机科学与应用/系统/运维/开发

linux下编译swoole扩展步骤

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扩展


swoole

docker镜像网站 https://docker.xuanyuan.me/#google_vignette

评论

^