博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
编译安装Redis Stable最新版本
阅读量:7251 次
发布时间:2019-06-29

本文共 2710 字,大约阅读时间需要 9 分钟。

目前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

转载地址:http://guebm.baihongyu.com/

你可能感兴趣的文章
git日常使用经验总结
查看>>
ELF文件解析(一):Segment和Section
查看>>
一个由于Function.name造成的兼容性bug
查看>>
比特币钱包隔离认证开发指南
查看>>
《从0到1学习Flink》—— Data Sink 介绍
查看>>
Vue.js 渲染简写样式存在的问题
查看>>
cocos2d-x (js-binding)游戏开发解决方案设计稿
查看>>
改善Python程序的91个建议
查看>>
简单说说 angular.json 文件
查看>>
js-数据运算
查看>>
解决阿里云ECS运行前后台分离项目调用QQ互联导致: redirect uri is illegal(100010)问题...
查看>>
Slog48_项目上线之域名的备案
查看>>
[ 一起学React系列 -- 1 ] 信笔说JSX
查看>>
homebrew报错问题解决
查看>>
肉眼看到的相同两个字串的不同
查看>>
ng-zorror@~0.6升级@^1在开发中有哪些差异
查看>>
微信小程序 request请求封装
查看>>
Git 学习
查看>>
ES6深入浅出 模块系统
查看>>
一道js闭包面试题的学习
查看>>