redis-2.6.7安装配置

1、下载:wget http://redis.googlecode.com/files/redis-2.6.7.tar.gz

2、解压:tar -zxvf redis-2.6.7.tar.gz

3、cd redis-2.6.7

4、make

5、make test

提示没有安装tclsh8.5

You need 'tclsh8.5' in order to run the Redis test

6、安装 apt-get install tcl8.5

下载:wget http://downloads.sourceforge.net/tcl/tcl8.5.12-src.tar.gz

7、运行redis

./src/redis-server redis.conf

 

hiredis c语言使用接口,加入头文件#include "hiredis/hiredis.h",编译时加入后缀-lhiredis。

 

本文出自 “说话的白菜” 博客,谢绝转载!

你可能感兴趣的:(redis,安装)