Redis-使用记录


下载&安装

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

http://redisdoc.com/



转载于:https://my.oschina.net/zj0303/blog/305196

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值