1. git clone https://github.com/nicolasff/phpredis

2. 首先git clone 项目到本地,切换到phpredis目录下

phpize 
./configure
make
makeinstall


3 . 在PHP.INI 配置文件中添加一条extension = redis.so

4 . 重启php service php-fpm7.0 restart