下载&安装
redis
wget http://download.redis.io/releases/redis-2.8.13.tar.gztar xzvf redis-2.8.13.tar.gzcd redis-2.8.13make make testmake install
遇到的问题:make test时出现:
You need tcl 8.5 or newer in order to run the Redis test
make: *** [test] Error 1
则需要安装tcl 详见:
wget tar zxvf tcl8.6.1-src.tar.gzcd tcl8.6.1cd 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
参考