当前位置:网站首页>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
边栏推荐
猜你喜欢

FAQ | FAQ for building applications for large screen devices

Introduction of UART, RS232, RS485, I2C and SPI

监控容器运行时工具Falco

奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习

详解用OpenCV的轮廓检测函数findContours()得到的轮廓拓扑结构(hiararchy)矩阵的意义、以及怎样用轮廓拓扑结构矩阵绘制轮廓拓扑结构图
![Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration](/img/a3/55bb71d39801ceeee421a0c8ded333.png)
Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration

pod生命周期详解

Install docker and use docker to install MySQL

【单片机项目实训】八路抢答器

Angled detection frame | calibrated depth feature for target detection (with implementation source code)
随机推荐
mm中的GAN模型架构
Markdown使用教程
Preview word documents online
[shutter] Introduction to the official example of shutter Gallery (project introduction | engineering construction)
为什么网站打开速度慢?
Custom throttling function six steps to deal with complex requirements
Andorid 获取系统标题栏高度
About the practice topic of screen related to unity screen, unity moves around a certain point inside
What website can you find English literature on?
University of Toronto:Anthony Coache | 深度强化学习的条件可诱导动态风险度量
[shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a
可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场
监控容器运行时工具Falco
Multiprocess programming (II): Pipeline
Multi process programming (III): message queue
Xcode real machine debugging
Array de duplication
Go自定义排序
多进程编程(四):共享内存
LeedCode1480. Dynamic sum of one-dimensional array