1 、去官方下载
2、解压tar
3、进入解压目录 编译
4、将编译好的目录移动到制定位置、做软连接 、配置环境便利
5、创建数据保存目录、创建配置文件
[root@radis ~]# vim /data/6379/redis.conf
daemonize yes
port 6379
logfile /data/6379/redis.log
dir /data/6379
dbfilename dump.rdb
save 900 1
save 300 10
save 60 1000
appendonly yes
appendfsync always
appendfsync everysec
appendfsync no
6、启动