Redis(5.0.0)最新稳定版编译安装启动

一、概述、API、编译安装步骤

最新稳定版为5.0.0

$ wget http://download.redis.io/releases/redis-5.0.0.tar.gz  
$ tar -zxvf redis-5.0.0.tar.gz  
$ cd redis-5.0.0  
$ make   #编译  
$ cd src  
$ make install PREFIX=/home/DiamondKing/conf/redis #安装到/home/DiamondKing/conf/redis目录  
$ cd ..  
$ cp redis.conf /home/DiamondKing/conf/redis #将配置文件移动到redis目录  

redis 默认不后台启动,需要配置

$ cd /home/DiamondKing/conf/redis
$ vim redis.conf #将daemonize的值改为yes
$ cd /home/DiamondKing/conf/redis/bin
$ ./redis-server ../redis.conf #启动

若需要让redis开机自启

$ vim /etc/rc.local  #加入下面一行
 /home/DiamondKing/conf/redis/bin/redis-server /home/DiamondKing/conf/redis/redis.conf 

二、redis配置及常用命令

三、redis基础知识

四、redis常用技术

五、spring缓存和redis结合

    原文作者:redis
    原文地址: https://www.cnblogs.com/virtulreal/p/9908141.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞