php 安装 phpredis 扩展

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

原文地址:https://www.cnblogs.com/likwo/p/8330179.html