1.1前提安装redis。
brew install redis
1.2如果没有安装brew则安装
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.1通过brew安装phpredis受挫。本人php7.1版本,命令对,但是结果不尽人意。
直接转到2.2吧!
brew install php71-redis
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/services).
==> Updated Formulae
abyss calicoctl httpd newman serverless
angular-cli circleci hugo nfdump starship
asdf crowdin lazydocker &nbs

本文档详细记录了在Mac上安装phpredis的过程,包括使用brew安装redis,解决通过brew安装phpredis遇到的问题,手动下载并配置phpredis,修改php.ini文件,以及最后的测试验证。在安装过程中遇到了php版本不匹配的问题,通过复制redis.so到php扩展目录并重新编译解决了问题。
最低0.47元/天 解锁文章
3399

被折叠的 条评论
为什么被折叠?



