编译安装Redis Stable最新版本

本文涉及的产品
云数据库 Tair(兼容Redis),内存型 2GB
Redis 开源版,标准版 2GB
推荐场景:
搭建游戏排行榜
简介:

目前REDIS已经升级到3.0.5为最稳定版本,但很多系统源没有更新,所以在这里进行编译安装

适合所有系统

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#wget http://download.redis.io/redis-stable.tar.gz
#tar xvf redis-stable
#cd redis-stable
#make 
#make install
安装后我们进行配置
 
#cd utils
#./install_server.sh
这里会根据需要进行配置,我的配置如下:
端口:6379
配置路径: /etc/redis/redis .conf
数据存放路径: /var/lib/redis/
注册服务:redis-server
 
Welcome to the redis service installer
This script will help you easily  set  up a running redis server
 
Please  select  the redis port  for  this instance: [6379] 
Selecting default: 6379
Please  select  the redis config  file  name [ /etc/redis/6379 .conf]  /etc/redis/redis .conf
Please  select  the redis log  file  name [ /var/log/redis_6379 .log] 
Selected default -  /var/log/redis_6379 .log
Please  select  the data directory  for  this instance [ /var/lib/redis/6379 /var/lib/redis/
Please  select  the redis executable path [ /usr/local/bin/redis-server
Selected config:
Port           : 6379
Config  file     /etc/redis/redis .conf
Log  file        /var/log/redis_6379 .log
Data  dir        /var/lib/redis/
Executable     :  /usr/local/bin/redis-server
Cli Executable :  /usr/local/bin/redis-cli
Is this ok? Then press ENTER to go on or Ctrl-C to abort.
Copied  /tmp/6379 .conf =>  /etc/init .d /redis_6379
Installing service...
insserv: warning: script  'K01redis'  missing LSB tags
insserv: warning: script  'redis'  missing LSB tags
insserv: warning: script  'haproxy'  missing LSB tags
insserv: Default-Start undefined, assuming default start runlevel(s)  for  script `haproxy'
insserv: Service network is missed  in  the runlevels 4 to use service redis_6379
redis_6379                0:off  1:off  2:on   3:on   4:on   5:on   6:off
Successfully added to chkconfig!
insserv: warning: script  'K01redis'  missing LSB tags
insserv: warning: script  'redis'  missing LSB tags
insserv: warning: script  'haproxy'  missing LSB tags
insserv: Default-Start undefined, assuming default start runlevel(s)  for  script `haproxy'
insserv: warning: script  'K01redis'  missing LSB tags
insserv: warning: script  'redis'  missing LSB tags
insserv: warning: script  'haproxy'  missing LSB tags
insserv: Default-Start undefined, assuming default start runlevel(s)  for  script `haproxy'
insserv: Service network is missed  in  the runlevels 4 to use service redis_6379
Successfully added to runlevels 345!
Starting Redis server...
Installation successful!
 
将redis注册为redis-server服务
#mv /etc/init.d/redis{_6379,-server}
 
测试下:
# service redis-server restart
Starting Redis server...
#redis-cli -v
redis-cli 3.0.5
#redis-cli PING
PONG

以上完成编译安装Redis Stable最新版本


本文转自 jackjiaxiong 51CTO博客,原文链接:http://blog.51cto.com/xiangcun168/1717116

相关实践学习
基于Redis实现在线游戏积分排行榜
本场景将介绍如何基于Redis数据库实现在线游戏中的游戏玩家积分排行榜功能。
云数据库 Redis 版使用教程
云数据库Redis版是兼容Redis协议标准的、提供持久化的内存数据库服务,基于高可靠双机热备架构及可无缝扩展的集群架构,满足高读写性能场景及容量需弹性变配的业务需求。 产品详情:https://www.aliyun.com/product/kvstore     ------------------------------------------------------------------------- 阿里云数据库体验:数据库上云实战 开发者云会免费提供一台带自建MySQL的源数据库 ECS 实例和一台目标数据库 RDS实例。跟着指引,您可以一步步实现将ECS自建数据库迁移到目标数据库RDS。 点击下方链接,领取免费ECS&RDS资源,30分钟完成数据库上云实战!https://developer.aliyun.com/adc/scenario/51eefbd1894e42f6bb9acacadd3f9121?spm=a2c6h.13788135.J_3257954370.9.4ba85f24utseFl
相关文章
|
12月前
|
存储 缓存 NoSQL
Redis的5.0/6.0/7.0版本重点介绍以及使用!
1. Stream数据类型:Redis 5.0引入了Stream数据类型,它是一种日志结构,用于高性能、持久化和实时处理的数据流。Stream可以按照时间顺序存储和检索消息,并支持消费者组和消费者偏移量管理等功能。 2. 基于模块的全文搜索:Redis 5.0通过引入Redis Search模块,提供了全文搜索的功能。它支持对文本字段进行索引和搜索,包括分词、词项权重、布尔查询等功能。 3. 客户端缓存:Redis 5.0引入了客户端缓存(Client-side caching)功能。客户端可以缓存服务器返回的数据,减少对服务器的请求,提高性能和响应速度。
1905 1
|
2月前
|
JavaScript NoSQL Redis
Vue中实现修改邮箱、手机号等流程的大致过程、验证码由后端的redis生成验证(版本1.0)
这篇文章记录了在Vue中实现修改手机号和邮箱的大致流程,包括使用过滤器部分隐藏展示的手机号和邮箱,以及通过点击触发路由跳转的便捷方式。文章还描述了旧号码和新号码验证的界面实现,其中验证码由后端生成并通过弹窗展示给用户,未来可以接入真正的手机验证码接口。此外,还提供了修改邮箱的页面效果截图,并强调了学习是一个永无止境的过程。
Vue中实现修改邮箱、手机号等流程的大致过程、验证码由后端的redis生成验证(版本1.0)
|
12月前
|
NoSQL Go 数据库
2023最新版 Navicat 16.2+系列安装和试用教程详解:轻松掌握最新版本的数据库管理工具连接Redis
2023最新版 Navicat 16.2+系列安装和试用教程详解:轻松掌握最新版本的数据库管理工具连接Redis
386 0
|
3天前
|
NoSQL 网络协议 Unix
1)Redis 属于单线程还是多线程?不同版本之间有什么区别?
1)Redis 属于单线程还是多线程?不同版本之间有什么区别?
8 0
|
2月前
|
存储 缓存 NoSQL
【Azure Redis 缓存 Azure Cache For Redis】Redis支持的版本及不同版本迁移风险
【Azure Redis 缓存 Azure Cache For Redis】Redis支持的版本及不同版本迁移风险
|
2月前
|
NoSQL Redis
Redis 版本升级问题之旧AOF文件如何解决
Redis 版本升级问题之旧AOF文件如何解决
|
2月前
|
NoSQL Redis
Redis 版本升级问题之识别升级过程如何解决
Redis 版本升级问题之识别升级过程如何解决
|
3月前
|
存储 缓存 NoSQL
Redis性能优化问题之优化 Redis fork 耗时严重的问题,如何解决
Redis性能优化问题之优化 Redis fork 耗时严重的问题,如何解决
|
3月前
|
存储 NoSQL Redis
Redis性能优化问题之Redis 4.0 以下版本如何解决内存碎片问题,4.0 版本提供了什么功能来解决内存碎片问题
Redis性能优化问题之Redis 4.0 以下版本如何解决内存碎片问题,4.0 版本提供了什么功能来解决内存碎片问题
|
3月前
|
SQL NoSQL 关系型数据库
若依修改02,若以提供了多种版本,RuoYi-Cloud和SpringBoot+Vue都是PC端的,如果想要适配手机端,用Uniapp+vue,导入Mysql和启动Redis
若依修改02,若以提供了多种版本,RuoYi-Cloud和SpringBoot+Vue都是PC端的,如果想要适配手机端,用Uniapp+vue,导入Mysql和启动Redis
下一篇
无影云桌面