1.首先需要在电脑中安装上redis
brew install redis
2.安装 autoconf
brew install autoconf
3.安装PHP的redis扩展
brew install php56-redis
4.重启apache
sudo apachectl restart
5.访问phpinfo页面,查看是否出现redis模块
1.首先需要在电脑中安装上redis
brew install redis
2.安装 autoconf
brew install autoconf
3.安装PHP的redis扩展
brew install php56-redis
4.重启apache
sudo apachectl restart
5.访问phpinfo页面,查看是否出现redis模块