去redis.io下载稳定版
# wget http://download.redis.io/releases/redis-2.8.17.tar.gz
# tar -zxvf redis-2.8.17.tar.gz
# cd redis-2.8.17
# make
# make PREFIX=/usr/local/redis install
复制配置文件到安装目录下面
# cp redis.conf /usr/local/redis/
切换安装目录
# cd /usr/local/redis/
修改配置文件使redis能够后台运行
# vi redis.conf
设置:daemonize yes
启动redis
# ./bin/redis-server redis.conf
连接redis
# ./bin/redis-cli [-h localhost -p 6379 ]
# wget http://download.redis.io/releases/redis-2.8.17.tar.gz
# tar -zxvf redis-2.8.17.tar.gz
# cd redis-2.8.17
# make
# make PREFIX=/usr/local/redis install
复制配置文件到安装目录下面
# cp redis.conf /usr/local/redis/
切换安装目录
# cd /usr/local/redis/
修改配置文件使redis能够后台运行
# vi redis.conf
设置:daemonize yes
启动redis
# ./bin/redis-server redis.conf
连接redis
# ./bin/redis-cli [-h localhost -p 6379 ]