版权声明:未经允许不得转载。 https://blog.csdn.net/qq_35958788/article/details/83587842
18年3月, homebrew/php 这个tap不在维护了,扩展全部转移到 homebrew-core 或者 delete, php70-redis 这个扩展被删除了,安装需要源码安装,记录一下
- php 使用的安装
brew install [email protected]
- redis 使用的安装
brew install redis
源码安装 phpredis
-
下载
wget https://nodeload.github.com/nicolasff/phpredis/zip/master
-
解压
tar -zxvf master
cd phpredis-master/
-
配置编译
/usr/local/opt/[email protected]/bin/phpize
./configure --with-php-config=/usr/local/opt/[email protected]/bin/php-config
make && make install
-
添加入php.ini
vim /usr/local/etc/php/7.1/php.ini
-
重启php-fpm
brew services restart [email protected]