- swoole安装步骤
1 下载php 7.2.2
wget https://www.php.net/distributions/php-7.2.22.tar.gz
2 进入目录 并且编译 安装
tar -zxvf php-7.2.22.tar.gz
cd php-7.2.22./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc/ --enable-mbstring --with-openssl
make && make install
3 复制php到local bin下
cp /usr/local/php/bin/php /usr/local/bin/php4 复制phpini文件
查看php.ini目录 php -- inicp /usr/local/src/php-7.2.22/php.ini-development /usr/local/php/etc/php.ini
5 安装swoole
cd /usr/local/src/
wget https://github.com/swoole/swoole-src/archive/v4.4.5.tar.gz
tar -zxvf v4.4.5.tar.gz
cd swoole-src-4.4.5/
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install6 查看swoole是否安装成功
php -m|grep swoole
原文地址:https://www.cnblogs.com/php-linux/p/11516789.html