使用 Homebrew,先安装 homebrew-php,再安装 phpredis

1
2
3
4
5
6
7
8
9
10
11
12
## Setup the homebrew/dupes tap which has dependencies we need:
brew tap homebrew/dupes

## Setup the homebrew/versions tap which has dependencies we need:
brew tap homebrew/versions

## Then, run the following in your command-line:
brew tap homebrew/homebrew-php

## 安装 php-redis
brew install php55-redis ## 针对 php 5.5
brew install php56-redis ## 针对 php 5.6