1:下载redis扩展
wget http://pecl.php.net/get/redis-4.2.0.tgz
tar -xvf redis-4.2.0.tgz
cd redis-4.2.0
2:编译redis扩展
执行 /usr/local/php/bin/phpize
错误解决办法:
(1)Configuring for:
PHP Api Version: 20170718
Zend Module Api No: 20170718
Zend Extension Api No: 320170718
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
解决办法:yum install autoconf
执行:./configure --with-php-config=/usr/local/php/bin/php-config
make && make install