PHP72 的 Redis 扩展安装问题?

本机环境是用homebrew安装的,
PHP 7.2.4怎么添加redis扩展?
file

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
最佳答案

brew install php72-redis 裝不了嗎

7年前 评论
讨论数量: 5

參考 https://github.com/phan/phan/wiki/Getting-...
因 homebrew/php 已在 1.5 版併入 homebrew/core
所以須先移除舊版,安裝新版後,再用 pecl 安裝擴展,具體作法如下,我已經操作過沒碰到問題:

brew update; # updates local brew meta data
# removes old homebrew php TAP, now php is in homebrew core
brew untap homebrew/php;
brew uninstall php; # or brew uninstall php72 if you had that before
brew upgrade; # make sure all the other libs are up to date
brew cleanup; # cleanup old files
brew prune; # cleanup old symlinks
brew install autoconf; # Required by pecl
brew install php;
pecl install redis;
7年前 评论

brew install php72-redis 裝不了嗎

7年前 评论

@leochien 对,装不了,homebrew移除了php72-redis。

7年前 评论

參考 https://github.com/phan/phan/wiki/Getting-...
因 homebrew/php 已在 1.5 版併入 homebrew/core
所以須先移除舊版,安裝新版後,再用 pecl 安裝擴展,具體作法如下,我已經操作過沒碰到問題:

brew update; # updates local brew meta data
# removes old homebrew php TAP, now php is in homebrew core
brew untap homebrew/php;
brew uninstall php; # or brew uninstall php72 if you had that before
brew upgrade; # make sure all the other libs are up to date
brew cleanup; # cleanup old files
brew prune; # cleanup old symlinks
brew install autoconf; # Required by pecl
brew install php;
pecl install redis;
7年前 评论

pecl install redis + 1

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!