Centos安装php的redis扩展

phpredis网站:https://github.com/phpredis/phpredis

1
git clone https://github.com/phpredis/phpredis.git
1
cd phpredis
1
phpize
1
./configure --with-php-config=/usr/local/php/bin/php-config
1
make && make install
1
vi /usr/local/php/etc/php.ini