下载
wget http://download.redis.io/releases/redis-3.0.7.tar.gz
解压
tar zxf redis-3.0.7.tar.gz
移动目录至/usr/local/redis
mv redis-3.0.7 /usr/local/redis
安装gcc
yum install gcc-c++
进入目录编译与安装
cd /usr/local/redis
make
make install
编辑配置文件,这里是最简配置文件,
daemonize yes
port 6379
logfile "6379.log"
dir /server/redis_data
启动
redis-server /usr/local/redis/config/redis-6379.conf
查看日志