centos7编译安装swoole4.1.1

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010474681/article/details/82463779

centos7编译安装swoole通讯框架

步骤1:下载源码包

进入我的工具目录       (自己定义的专门放软件工具包的目录tools)

运行命令: cd /home/tools

运行命令: git clone  https://gitee.com/swoole/swoole.git

步骤2:

进入软件包目录    运行命令:cd swoole

通过php的工具包添加扩展,运行命令:phpize   (如果提示没有找不到这个,就yum install php-devel 安装一下就行。)

phpize运行成功的截图。

扫描二维码关注公众号,回复: 4361360 查看本文章

步骤3:

配置   运行命令:./configure   

编译  运行命令: make

安装  运行命令:make install

步骤4:

 修改php.ini文件  添加swoole模块,。不要忘记重启php-fpm

运行命令:php -m

看到已经加载swoole模块了

猜你喜欢

转载自blog.csdn.net/u010474681/article/details/82463779
今日推荐