sudo pecl install swoole

即可安装。安装完后修改php.ini,加入extension=swoole.so

重启 sudo systemctl restart php-fpm

 

查看phpinfo()  可以查找到 swoole 的字样

相关文章: