公告:魔扣目录网为广大站长提供免费收录网站服务,提交前请做好本站友链:【 网站目录:https://www.morko.net 】, 免友链快审服务(50元/站),

点击这里在线咨询客服
新站提交
  • 网站:51998
  • 待审:31
  • 小程序:12
  • 文章:1030137
  • 会员:747

一.工具准备

  • VMware 15(centos 7)

链接:
https://pan.baidu.com/s/1f5xW2d18vSHHhpz3KsZIHA

提取码:gpf7

  • Xftp 5 & Xshell 5

链接:
https://pan.baidu.com/s/1gqe_M1fKQtIAT5BaNhj2BQ

提取码:utar

  • redis安装包

下载地址:
https://download.redis.io/releases/

二.安装Redis

2.1 查看linux ip地址

[root@localhost ~]# ifconfig

2.2 Xshell连接Linux

安装Redis

 

2.3 Xftp连接linux

安装Redis

 

2.4 安装Redis

2.4.1 使用Xftp将Redis传输到Linux中

[root@localhost data]# cd program/
[root@localhost program]# ls
redis-3.2.11.tar.gz

2.4.2 解压Redis

[root@localhost program]# tar -zxvf redis-3.2.11.tar.gz 
redis-3.2.11/
redis-3.2.11/.gitignore

2.4.3 进入到Redis目录下,编译Redis

[root@localhost program]# cd redis-3.2.11
[root@localhost redis-3.2.11]# ls
00-RELEASENOTES  CONTRIBUTING  deps Makefile   README.md   runtest  runtest-sentinel  srcutils
BUGS COPYING   INSTALL  MANIFESTO  redis.conf  runtest-cluster  sentinel.conf tests
[root@localhost redis-3.2.11]# make

2.4.4 通过make test测试编译状态

[root@localhost redis-3.2.11]# make test

出现这段文字说明测试通过

o/ All tests passed without errors!

2.4.5 通过make install 完成安装

[root@localhost program]# mkdir redis
[root@localhost program]# cd redis-3.2.11
[root@localhost redis-3.2.11]# make install PREFIX=/whm/data/program/redis

安装完成后会有以下文件

[root@localhost redis-3.2.11]# cd ../redis
[root@localhost redis]# ls bin/
redis-benchmark  redis-check-aof  redis-check-rdb  redis-cli  redis-sentinel  redis-server

2.4.6 将redis.conf拷贝到redis目录下

[root@localhost redis-3.2.11]# cp redis.conf ../redis/redis.conf
[root@localhost redis-3.2.11]# cd ../redis
[root@localhost redis]# ls
bin  redis.conf

2.4.7 启动redis

[root@localhost redis]# cd bin/
[root@localhost bin]# ./redis-server ../redis.conf 

2.4.8 配置以后台进程启动redis

将 redis.conf 的daemonize参数设置为yes

[root@localhost bin]# vim ../redis.conf 
安装Redis

 

配置完后启动redis

[root@localhost bin]# ./redis-server ../redis.conf 

2.4.9 关闭redis

[root@localhost bin]# ./redis-cli shutdown

到这里Redis就安装完成了

分享到:
标签:安装 Redis
用户无头像

网友整理

注册时间:

网站:5 个   小程序:0 个  文章:12 篇

  • 51998

    网站

  • 12

    小程序

  • 1030137

    文章

  • 747

    会员

赶快注册账号,推广您的网站吧!
最新入驻小程序

数独大挑战2018-06-03

数独一种数学游戏,玩家需要根据9

答题星2018-06-03

您可以通过答题星轻松地创建试卷

全阶人生考试2018-06-03

各种考试题,题库,初中,高中,大学四六

运动步数有氧达人2018-06-03

记录运动步数,积累氧气值。还可偷

每日养生app2018-06-03

每日养生,天天健康

体育训练成绩评定2018-06-03

通用课目体育训练成绩评定