1、下载redis 并解压到当前目录
1 | wget http://pecl.php.net/get/redis-3.1.2.tgz |
2、进入解压的redis目录
1 | cd redis-3.1.2 |
3、用phpize生成configure配置文件(你自己的phpize在哪里可以查找一下!)
1 | whereis phpize # 先找phpize在哪 |
4、配置
1 | ./configure --with-php-config=/usr/local/php/bin/php-config # php-config为php/bin下的执行文件 |

