下载&安装
redis
wget http://download.redis.io/releases/redis-2.8.13.tar.gz
tar xzvf redis-2.8.13.tar.gz
cd redis-2.8.13
make
make test
make install
遇到的问题:make test时出现:
You need tcl 8.5 or newer in order to run the Redis test
make: *** [test] Error 1
则需要安装tcl 详见: http://www.linuxfromscratch.org/blfs/view/cvs/general/tcl.html
wget
tar zxvf tcl8.6.1-src.tar.gz
cd tcl8.6.1
cd unix &&
./configure --prefix=/usr \
--without-tzdata \
--mandir=/usr/share/man \
$([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
make &&
sed -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
-e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
-i tclConfig.sh
make install &&
make install-private-headers &&
ln -v -sf tclsh8.6 /usr/bin/tclsh &&
chmod -v 755 /usr/lib/libtcl8.6.so
联通性测试
启动服务器:
redis-server
检测是否运行:redis-cli ping 返回PONG 则运行OK
支持数据类型
String、Map、List、Set、SortedSet
参考
http://snowolf.iteye.com/blog/1630697