
本文是基于 centos 下编译安装PHP7.3搭建PHP运行环境 编译安装版本,进行的redis的编译扩展安装方法整理。
1
2
wget http://pecl.php.net/get/redis-4.2.0.tgz
tar -xzvf redis-4.2.0.tgz -C /opt/module1
2
cd /opt/module/redis-4.2.0
/usr/local/php/bin/phpize1
2
3
4
5
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
# 安装autoconf
yum install autoconf1
find / -name php-config1
2
./configure --with-php-config=/usr/local/php/bin/php-config
make & make install1
2
3
vim /etc/php.ini
extension=redis.so1
2
systemctl restart php-fpm1
php -m