Mac下安装phpredis
系统环境 macOS 10.14.5 MAMP 5.4 阿里云Redis 5.0集群 PHP的版本7.3.7 下载php-redis, github地址:https://github.com/phpredis/phpredis.git cd phpredis 编译 phpize /Applications/MAMP/bin/php/php7.3.7/bin/phpize 提示无法找到antoconf,如图: 使用 brew install autoconf 安装 autoconf,如果没有安装brew,执行 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" /configure 执行 ./configure --with-php-config=/Applications/MAMP/bin/php/php7.3.7/bin/php-config make&make test 拷贝redis.so cd modules cp redis.so /Applications/MAMP/bin/php/php7.3.7/lib/php/extensions/no-debug-non-zts-20180731 修复php的配置文件 cd