Mac OS X安装redis-php扩展

来源:互联网 发布:如何设置监控网络连接 编辑:程序博客网 时间:2024/05/17 23:55

1.获取github中的redis-php扩展代码:

git clone https://github.com/phpredis/phpredis.git

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了

0 0
原创粉丝点击