1:下载swoole源码,https://github.com/swoole/swoole-src/releases
2:tar -zxvf swoole.tgz
3:进入解压目录,输入:/usr/local/php/bin/phpize
4:./confiure --with-php-config=/usr/local/php/bin/php-config
5:make && make install
6:修改php.ini,extension=swoole.so
2:tar -zxvf swoole.tgz
3:进入解压目录,输入:/usr/local/php/bin/phpize
4:./confiure --with-php-config=/usr/local/php/bin/php-config
5:make && make install
6:修改php.ini,extension=swoole.so