redis3.2编译
Redis 3.2 是 Redis 的一个版本,它是一个高性能的键值存储系统,通常用作数据库、缓存和消息代理
env
- centos6.5
- redis3.2
#redis
deploy
1.download redis-src
http://download.redis.io/releases/redis-3.2.3.tar.gz
2.安装编译环境
yum -y install gcc gcc-c++ libstdc++-devel tcl tcl-devel
3.编译安装
#libc
make -s -j2 MALLOC=libc
make -s PREFIX=/usr/local/redis install
#jemalloc
make MALLOC=jemalloc
make PREFIX=/usr/local/redis install
4.启动测试
cp redis.conf /etc/
redis-server /etc/redis.conf
#redis-cli
127.0.0.1:6379> set kv01 "hello world"
OK
127.0.0.1:6379> get kv01
"hello world"
127.0.0.1:6379>
#退出客户端
exit/quit
#关闭redis服务端
redis-cli shutdown
redis2.8.18安装报错error: jemalloc/jemalloc.h: No such file or directory,在编译指定libc make MALLOC=libc