1、下载
下载地址:https://github.com/phpredis/phpredis/
文件名:phpredis-develop.zip
文件下载成功后,上传至/usr/local
2、安装
unzipphpredis-php7.zip
cd phpredis-php7
/usr/local/php-7.1/bin/phpize(php安装路径)
./configure --with-php-config=/usr/local/php-7.1/bin/php-config
make&make install
/usr/local/php-7.1/lib/php/extensions/no-debug-zts-20160303/
vi /usr/local/php/lib/php.ini
extension=/usr/local/php-7.1/lib/php/extensions/no-debug-zts-20160303/redis.so