wget https://github.com/swoole/swoole-src/archive/swoole-1.7.6-stable.tar.gz
tar zxvf swoole-1.7.6-stable.tar.gz
cd swoole-1.7.6-stable
phpize
./configure
make && make install
最后要修改下php.ini 添加extension=swoole.so
重启php-fpm
php -m查看有没有swoole即可
————————————————
原文链接:https://blog.csdn.net/qq_39889272/article/details/81137188