本文主要是介绍Linux 安装phpredis扩展,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
背景:php环境使用yum安装的,不需要安装redis,只需要phpredis扩展
一、调试phpize
二、安装igbinary
三、安装phpredis
四、重启
走到哪里都不要忘了官网 https://github.com/phpredis/phpredis
开始使用yum install php-redis
看到有人推荐
wget http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum install php-redis
无果,一直error,忘记截图了
只有看到 http://www.osyunwei.com/archives/7210.html
因为服务器用yum安装的,感觉不能make(本人新手),看到很多的资料以后,最终决定此方法是ok的
但是需要准备两个文件,phpize ,php-config
查找两个文件的位置
whereis phpizewhereis php-config
发现没有php-config
于是运行phpize 或者/usr/bin/phpize,此时报错再次报错
# phpize
C
这篇关于Linux 安装phpredis扩展的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!