当前位置:网站首页>Linux上给PHP安装redis扩展
Linux上给PHP安装redis扩展
2022-08-09 17:26:00 【Gan_1314】
Linux下的PHP怎么安装redis扩展
下载redis扩展源码包
cd /usr/local/src
wget https://github.com/nicolasff/phpredis/archive/2.2.4.tar.gz
安装
tar -zxvf 2.2.4.tar.gz
cd phpredis-2.2.4
/usr/local/php/bin/phpize
PHP安装目录为
/usr/local/php
若执行/usr/local/php/bin/phpize
报错
是缺少工具,执行yum install autoconf
命令即可,参考文件
yum install autoconf
./configure --with-php-config=/usr/local/php/bin/php-config
make
若make
编译报错
因为最新的 phpredis 分了几大分支,针对最新的PHP稳定发行版 php7 有专门为php7的分支,[参考文件]
(https://blog.csdn.net/jartins/article/details/80371257)
vim /usr/local/php/etc/php.ini
#添加extension=redis.so
边栏推荐
- One-key login principle of local number
- win10 uwp 活动磁贴
- CPU状态信息us,sy,ni,id,wa,hi,si,st含义
- Flink on Yarn
- 怎样选择一个好的SaaS知识库工具?
- d中shared用法
- Unity webgl 关于适配网页 ,并且用到js中的SetTimeOut和SetInterval()
- Sublime Text如何安装Package Control
- 50道Redis面试题,来看看你会多少?
- Logic unauthorized and horizontal and vertical unauthorized payment tampering, verification code bypass, interface
猜你喜欢
偷偷盘点一下各大互联网公司的实习薪资
不是吧,连公司里的卷王写代码都复制粘贴,这合理?
传统数据中台又贵又复杂?何不试一试永久免费的下一代数据中台
【Pycharm好用功能】
URLError: <urlopen error [Errno 11004] getaddrinfo failed>调用seaborn-data无法使用
The most complete architect knowledge map in history
对数学直观、感性的认知是理解数学、喜爱数学的必经之路,这本书做到了!
Wallys/QCA 9880/802.11ac Mini PCIe Wi-Fi Module, Dual Band, 2,4GHz / 5GHz advanced edition
JVM:(八)运行时数据区之方法区
The strongest distributed lock tool: Redisson
随机推荐
Flink on Yarn
What is test development and why is it so popular now?
程序健壮性
基于AWS构建云上数仓第一步:云平台的基础概念
神秘的程序员(20-30)
JVM:(八)运行时数据区之方法区
Sublime Text的安装过程记录
Ark Standalone/Administrator Special Item Command Codes
好的架构是进化来的,不是设计来的
十七、一起学习Lua 错误处理
win10 uwp 改变鼠标
The senior told me that the MySQL of the big factory is connected through SSH
动手学深度学习_全卷积网络 FCN
阿里云张新涛:支持沉浸式体验应用快速落地,阿里云云XR平台发布
2022秋招面试宝典,啃完面试稳了
【Pycharm好用功能】
方舟:生存进化开服务器端口映射教程
API接口是什么?API接口常见的安全问题与安全措施有哪些?
.NET 6 study notes (4) - Solve the Nullable warning in VS2022
anno arm移植Qt环境后,编译正常,程序无法正常启动问题的记录