当前位置:网站首页>Linux软件:如何安装Redis服务
Linux软件:如何安装Redis服务
2022-07-02 23:31:00 【首席摸鱼师】
第一步:将redis安装包上传到我们服务器里

第二步:解压文件并移动到/usr/local/redis目录内,没有则自行创建
1、解压
[[email protected] home]# tar -zxvf redis-4.0.8.tar.gz
2、移动
[[email protected] home]# mv redis-4.0.8 /usr/local/redis/
第三步:编译并安装
1、进入redis目录执行make命令编译
[[email protected] redis-4.0.8]# make

**此时遇到cc错误执行如下命令,重新编译即可
[[email protected] redis-4.0.8]# yum -y install gcc automake autoconf libtool make

[[email protected] redis-4.0.8]# make

**此时如遇到致命错误,命令后添加MALLOC=libc
[[email protected] redis-4.0.8]# make MALLOC=libc

2、安装redis
[[email protected] redis-4.0.8]# make install PREFIX=/usr/local/redis

3、启动redis
[[email protected] redis-4.0.8]# ./src/redis-server redis.conf

第四步:将redis启动改为后台运行
1、修改redis.conf配置文件将该配置文件中的daemonize no改为daemonize yes即可
[[email protected] redis-4.0.8]# vi redis.conf

2、重新启动并使用ps -ef | grep redis查看状态
[[email protected] redis-4.0.8]# ./src/redis-server redis.conf

[[email protected] redis-4.0.8]# ps -ef | grep redis

安装完毕!
百度网盘
提取码: 4kss
边栏推荐
- Where can I find foreign papers?
- Go自定义排序
- collections. What is the purpose of chainmap- What is the purpose of collections. ChainMap?
- Custom throttling function six steps to deal with complex requirements
- 论文的英文文献在哪找(除了知网)?
- Bypass AV with golang
- [IELTS reading] Wang Xiwei reading P2 (reading fill in the blank)
- AcWing_ 188. Warrior cattle_ bfs
- Is there a specific format for English papers?
- Graduation summary
猜你喜欢

What are the recommended thesis translation software?
![[shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a](/img/f2/f3b8899aa774dd32006c5928d370f1.gif)
[shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a

MySQL 23道经典面试吊打面试官

Explain in detail the significance of the contour topology matrix obtained by using the contour detection function findcontours() of OpenCV, and how to draw the contour topology map with the contour t

Introduction and use of ftrace tool

ftrace工具的介绍及使用

Understanding and application of least square method
![[target detection] r-cnn, fast r-cnn, fast r-cnn learning](/img/f0/df285f01ffadff62eb3dcb92f2e04f.jpg)
[target detection] r-cnn, fast r-cnn, fast r-cnn learning

详解用OpenCV的轮廓检测函数findContours()得到的轮廓拓扑结构(hiararchy)矩阵的意义、以及怎样用轮廓拓扑结构矩阵绘制轮廓拓扑结构图

Bigder: how to deal with the bugs found in the 32/100 test if they are not bugs
随机推荐
NC24325 [USACO 2012 Mar S]Flowerpot
程序分析与优化 - 9 附录 XLA的缓冲区指派
Markdown tutorial
监控容器运行时工具Falco
【单片机项目实训】八路抢答器
MySQL advanced learning notes (4)
Briefly talk about other uses of operation and maintenance monitoring
How to specify const array in the global scope of rust- How to specify const array in global scope in Rust?
Chapter 4 of getting started with MySQL: data types stored in data tables
NC20806 区区区间间间
Slf4j + Logback日志框架
Automated defect analysis in electronic microscopic images
[IELTS reading] Wang Xiwei reading P2 (reading fill in the blank)
简单聊聊运维监控的其他用途
Talk with the interviewer about the pit of MySQL sorting (including: duplicate data problem in order by limit page)
The most painful programming problem in 2021, adventure of code 2021 Day24
奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习
collections. What is the purpose of chainmap- What is the purpose of collections. ChainMap?
关于Unity屏幕相关Screen的练习题目,Unity内部环绕某点做运动
TypeError: Cannot read properties of undefined (reading ***)