美文网首页
Swoole源码安装

Swoole源码安装

作者: 柠檬的眼泪是酸的 | 来源:发表于2018-06-12 16:51 被阅读0次

安装git  yum -y install git 

下载swoole   git clone https://gitee.com/swoole/swoole.git

phpize目录

执行phpize  /home/work/study/soft/php/bin/phpize

命令行提升Cannot find autoconf

安装autoconf   yum -y install autoconf

安装好autoconf后  执行phpize   /home/work/study/soft/php/bin/phpize 会生成configure文件

用于configure 编译需要gcc 安装gcc  yum install gcc-c++

执行configure  ./configure --with-php-config=/home/work/study/soft/php/bin/php-config

make

make install

修改php.ini 添加extension=swoole

查看swoole是否安装成功   php -m

相关文章

网友评论

      本文标题:Swoole源码安装

      本文链接:https://www.haomeiwen.com/subject/uyfreftx.html