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

Talk with the interviewer about the pit of MySQL sorting (including: duplicate data problem in order by limit page)

百数不断创新,打造自由的低代码办公工具

Bloom filter

教育学大佬是怎么找外文参考文献的?

What website can you find English literature on?

UART、RS232、RS485、I2C和SPI的介绍

Bigder: how to deal with the bugs found in the 32/100 test if they are not bugs
![Luogu_ P1149 [noip2008 improvement group] matchstick equation_ Enumeration and tabulation](/img/4a/ab732c41ea8a939fa0983fec475622.png)
Luogu_ P1149 [noip2008 improvement group] matchstick equation_ Enumeration and tabulation

Pageoffice - bug modification journey

redis21道经典面试题,极限拉扯面试官
随机推荐
logback配置文件
奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习
NC50965 Largest Rectangle in a Histogram
FRP reverse proxy +msf get shell
Basic 10 of C language: array and pointer
Nc20806 District interval
Nc50528 sliding window
Custom throttling function six steps to deal with complex requirements
University of Toronto:Anthony Coache | 深度强化学习的条件可诱导动态风险度量
Two common methods and steps of character device registration
zhvoice
CMake基本使用
NC24325 [USACO 2012 Mar S]Flowerpot
[pulsar document] concepts and architecture
请问大家在什么网站上能查到英文文献?
Missing number
Markdown tutorial
MySQL advanced learning notes (4)
kubernetes编写yml简单入门
详解用OpenCV的轮廓检测函数findContours()得到的轮廓拓扑结构(hiararchy)矩阵的意义、以及怎样用轮廓拓扑结构矩阵绘制轮廓拓扑结构图