references:
https://blog.csdn.net/will5451/article/details/71086420
tar -zxvf redis-2.2.8.tgz
cd redis-2.2.8
/usr/local/php/bin/phpize #generated with phpize
./configure --with-php-config=/usr/local/php/bin/php-config #配置
make
make install
Download and install the extension here
5. Configure the php.ini file so that php can support redis extensions
vim /etc/php.ini
Add this line in: extension = redis.so
restart the service;
Test phpinfo(); now you can see the redis extension support;