当前位置:网站首页>redis6在centos7的安装
redis6在centos7的安装
2022-08-09 14:50:00 【Koma-forever】
redis6
下载地址:https://github.com/redis/redis/tags
6.2.1: https://github.com/redis/redis/archive/refs/tags/6.2.1.tar.gz
redis的安装
1、准备工作
#安装c语言编译环境
yum install centos-release-scl scl-utils-build
yum install -y devtoolset-8-toolchain
scl enable devtoolset-8 bash
#测试gcc版本
yum install gcc
gcc --version

2、正式安装
cd /usr/src/local
mkdir software
cd software
wget https://github.com/redis/redis/archive/refs/tags/6.2.1.tar.gz
tar -zxvf 6.2.1.tar.gz
cd redis-6.2.1/
#编译
make
#安装
make install
#安装后会在usr/local/bin目录下出现redis的安装文件
cd usr/local/bin
make install后,会在musr/local/bin目录下出现redis的安装文件
文件说明
| 文件名 | 说明 |
|---|---|
| redis-benchmark | 性能测试工具,可以在自己的本子上运行,看看自己本子的性能如何 |
| redis-check-aof | 修复有问题的AOF文件 |
| redis-check-dump | 修复有问题的dump.rdb文件 |
| redis-sentinel | redis集群使用 |
| redis-server | redis服务器启动命令 |
| redis-cli | redis客户端,操作入口 |
前台启动(不推荐)
redis-server

后台启动(推荐使用)
cd /usr/local/software/redis-6.2.1/
cp redis.conf redis.bk.conf
修改如下内容
vim redis.conf
daemonize no修改为yes(后台启动为不支持修改为支持)
cd /usr/local/bin/
# redis 后台启动命令
redis-server /usr/src/local/software/redis-6.2.1/redis.conf
#查看进程
ps -ef | grep redis

边栏推荐
- VMWare does not use easy install, install ISO manual manually
- 基于FPGA的FIR滤波器的实现(3)—采用Filter Design & Analysis设计
- FilenameFilter filters filenames
- Shell编程之正则表达式
- A wave of Versailles: assault by the ali interview guide, I've got nine of the Offer
- DBCO-PEG-DSPE,磷脂-聚乙二醇-二苯并环辛炔,在无铜离子的催化下反应
- Technology Sharing | How to Handle Header Cookies in Interface Automation Testing
- 回归测试:意义、挑战、最佳实践和工具
- DSPE-PEG-Hydrazide,DSPE-PEG-HZ,磷脂-聚乙二醇-酰肼MW:1000
- Shell编程之循环语句
猜你喜欢

实践数据湖iceberg 第三十九课 清理快照前后数据文件变化分析

A wave of Versailles: assault by the ali interview guide, I've got nine of the Offer

C语言程序设计笔记(浙大翁恺版) 第四周:循环

OpenSSF's open source software risk assessment tool: Scorecards

C语言——指针和数组、指针数组和数组指针、指针和二维数组

回归测试:意义、挑战、最佳实践和工具

C语言程序设计笔记(浙大翁恺版) 第六周:数据类型

spacedesk-notebook, tablet, extended screen-solve the problem that the tablet font is too small

Computer Graphics From Scratch - Chapter 5

【DevOps】jekins部署(一)
随机推荐
【微信小程序】利用MPFlutter开发微信小程序
[Basic version] Integer addition, subtraction, multiplication and division calculator
OpenCV - 矩阵操作 Part 3
太厉害了!华为大牛终于把MySQL讲的明明白白(基础+优化+架构)
6大论坛,30+技术干货议题,2022首届阿里巴巴开源开放周来了!
【LeetCode】1898. 可移除字符的最大数目
基于FPGA的FIR滤波器的实现(2)—采用kaiserord & fir2 & firpm函数设计
优化软件测试成本的 7 个步骤
C语言程序设计笔记(浙大翁恺版) 第二周:计算
相似图像的检测方法
技术分享 | 接口自动化测试如何处理 Header cookie
A wave of Versailles: assault by the ali interview guide, I've got nine of the Offer
STSW-LINK00x下载集合,百度云连接
08-Lock版的生产者消费者问题
【原神】手机版原神下错版本不能登录怎么办?B服修改为官服
C语言程序设计笔记(浙大翁恺版) 第十一周:结构类型
项目小操作:form表单的校验,以及第二次显示提示校验内容等问题
C语言程序设计笔记(浙大翁恺版) 第四周:循环
ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions unless TOP, OFFSET, or FOR XML is also specified
MySQL principle and optimization: Limit the query optimization