# wget https://github.com/swoole/swoole-src/archive/swoole-1.8.5-stable.tar.gz # tar zxvf swoole-1.8.5-stable.tar.gz # cd swoole-1.8.5-stable # phpize # ./configure # make && make install
然后在php.ini文件添加Swoole扩展:
extension=swoole.so
重启php-fpm:
# service php-fpm restart
然后查看扩展安装情况。如果在列出的扩展中看到了swoole,则说明安装成功: