redis
tar xf redis-3.2.5.tar.gz
cd redis-3.2.5
make &&make install
1.提示/bin/sh:cc: command not found
yum –y installgcc
2.提示zmalloc.h:50:31:error: jemalloc/jemalloc.h: No such file or directory
makeMALLOC=libc
3.提示Youneed tcl 8.5 or newer in order to run the Redis test
yum –y installtcl
make test
cp redis.conf/etc/
vim/etc/redis.conf
aemonize no #改为yes转为守护进程,否则启动时会每隔5秒输出一行监控信息
save 60 1000 #减小改变次数,其实这个可以根据情况进行指定
启动服务
/root/redis-3.2.5/src
./redis-server /etc/redis.conf
关闭服务
./redis-cli shutdown