1. 下载swoole
wget https://github.com/swoole/swoole-src/archive/swoole-1.7.17-stable.tar.gz
2. 解压
tar zxvf swoole-1.7.17-stable
cd swoole-1.7.17-stable
cd swoole-1.7.17-stable
3.编译
./configure
make
make test
make install
4.添加扩展
pecl install swoole
或者找到php.ini 在其中加入
extension=swoole.so