系统环境
uUbuntu 20.04
PHP版本
PHP 7.4.3
下载swoole4.7.0源码包
git clone https://github.com/swoole/swoole-src.git
进入swoole包
cd swoole-src
PHPize
编译
./configure
安装
make
sudo make install
sudo find / -name PHP.ini
sudo vi /etc/PHP/7.4/cli/PHP.ini
extension=swoole.so
查看swoole拓展是否安装
PHP -m