PHP72 的 Redis 扩展安装问题?

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

《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
最佳答案

brew install php72-redis 裝不了嗎

5年前 评论
讨论数量: 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;
5年前 评论

brew install php72-redis 裝不了嗎

5年前 评论

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

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;
5年前 评论

pecl install redis + 1

4年前 评论

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