下载phpredis
git clone https://github.com/phpredis/phpredis.git
切换目录到phpredis
cd phpredis
执行phpize
phpize
安装
./configure --with-php-config=/usr/local/bin/php-config
git clone https://github.com/phpredis/phpredis.git
cd phpredis
phpize
./configure --with-php-config=/usr/local/bin/php-config