安装swoole扩展

1 获取swoole有三种途径

https://github.com/swoole/swoole-src/releases
http://pecl.php.net/package/swoole
http://git.oschina.net/swoole/swoole

2 解包并用phpize编译扩展

/usr/local/php/bin/phpize

3 编译

./configure --with-php-config=/usr/local/php/bin/php-config

4 安装

make && make install

5 打开php.ini,增加swoole扩展

extension=swoole.so

你可能感兴趣的:(安装swoole扩展)