1.下载地址 : https://pecl.php.net/package/redis
2.解压 : tar -xzvf redis-4.3.0.tgz
3.用phpize生成configure配置文件 : /usr/local/php/bin/phpize
Configuring for: PHP Api Version: 20170718 Zend Module Api No: 20170718 Zend Extension Api No: 320170718
4.设置配置文件路径 : ./configure --with-php-config=/usr/local/php/bin/php-config
creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h
5.编译安装 : make && make install
Build complete. Don't forget to run 'make test'.Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-zts-20170718/