1:获取swoole
- https://github.com/swoole/swoole-src/releases
- http://pecl.php.net/package/swoole
- http://git.oschina.net/swoole/swoole
/usr/local/webserver/php7/bin/phpize
红色字体部分是你的php安装路径
3:编译
./configure --with-php-config=/usr/local/webserver/php7/bin/php-config
红色字体部分为你的php安装路径
4:安装
make && make install
5:打开php.ini增加swoole扩展
extension=swoole.so
然后重启apache,打开phpinfo()看到swoole项,则表示扩展成功