安装PHP扩展phpredis

PHP扩展-phpredis

# 下载
wget https://github.com/phpredis/phpredis/archive/5.0.2.tar.gz

tar -zxvf 5.0.2.tar.gz

# 进入解压文件
cd phpredis-5.0.2/
# 编译安装
/Applications/MAMP/bin/php/php7.3.1/bin/phpize

./configure --with-php-config=/Applications/MAMP/bin/php/php7.3.1/bin/php-config 

make && make install

显示如下,就证明安装成功了

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /Applications/MAMP/bin/php/php7.3.1/lib/php/extensions/no-debug-non-zts-20180731/

你可能感兴趣的:(Redis)