源码安装 swoole 扩展

 准备工作

    1)在 www.swoole.com 中 git 中复制链接

      

   

    2)安装之前需要安装 autoconfig 和 gcc 依赖包

执行步骤:

1) yum install git 

2) git clone https://gitee.com/swoole/swoole.git (复制的链接)

3) cd swoole

4) /usr/local/php/bin/phpize   使用phpize

   

   生成一个configure 的文件

 

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

  --with-php-config = (安装到那个php的环境)

6) make

7) make install

8) cd

/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/

9) ll

10) 可以看到swoole.so 扩展


猜你喜欢

转载自blog.csdn.net/qq_38287952/article/details/79940623