您的位置:首页 > 数据库 > Redis

Mac OS X安装redis-php扩展

2015-08-16 19:05 736 查看
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了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: