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 nghttp2 stress-ng
aws-sdk-cpp distcc libgit2 opa topgrade
azure-cli gcc logtalk pagmo traefik