Redis实战——phpredis扩展安装
准备安装软件(download)
1> [redis]
http://redis.googlecode.com/files/redis-2.4.3.tar.gz
2> [phpredis]
https://github.com/owlient/phpredis/tarball/master
redis安装跳过
1>【安装phpredis扩展】
tar -zxvf owlient-phpredis-2.1.1-1-g90ecd17.tar.gz
cd owlient-phpredis-90ecd17
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
#执行完make install后会生成
#Installing shared extensions: /usr/local/php//lib/php/extensions/no-debug-non-zts-20060613/
#修改php.ini
vi /usr/local/php/etc/php.ini
#查找extension_dir,修改为
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
#添加redis
extension = redis.so
#重启apache
service httpd restart
文章标签: redis 扩展 linux extension c
What a meaningless sense if losing myself,though owning all of the world.