swoole安装

 

以下是在macos 下操作:

 

1、git clone swoole 代码

 

2、phpize 

 

3、./configure

./configure —with-php-config=‘指定php版本的php-config路径’

 

3、make

 

4、make install

Installing shared extensions:     /usr/local/Cellar/php71/7.1.13_24/lib/php/extensions/no-debug-non-zts-20160303/

Installing header files:          /usr/local/Cellar/php71/7.1.13_24/include/php/

 

 

5、找到php.ini 添加扩展swoole.so

 

 

6、重启php.ini

 

7、php -m 查看是否安装成功

 

8.去执行swoole example文件夹下 server执行 php echo.php文件

 

9、lsof 

posted @ 2018-11-24 10:47  微风星宇  阅读(127)  评论(0编辑  收藏  举报