1.获取github中的redis-php扩展代码:
2.cd phpredis/
3.phpize
!!!!!!!!!!!!!!!!!!!!!!!
3.5 mac os 如果这里有Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
的问题,那么:
执行:brew install autoconf
4.之后执行phpize
5. ./configure
6. make && sudo make install
7. 之后在php.ini中加一句 extension=redis.so 就ok了
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/qq754406613/article/details/47704907