当前位置:网站首页>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
边栏推荐
- Pat 1030 travel plan (30 points) (unfinished)
- Chapter 4 of getting started with MySQL: data types stored in data tables
- Where can I find the English literature of the thesis (except HowNet)?
- FAQ | FAQ for building applications for large screen devices
- Is there a specific format for English papers?
- 毕业总结
- Markdown使用教程
- 秒杀系统设计
- Multi process programming (III): message queue
- MySQL 23 classic interview hanging interviewer
猜你喜欢
One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function
秒杀系统设计
maya渔屋建模
Where can I find the English literature of the thesis (except HowNet)?
[shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a
ftrace工具的介绍及使用
字符设备注册常用的两种方法和步骤
Introduction of UART, RS232, RS485, I2C and SPI
多进程编程(一):基本概念
请问大家在什么网站上能查到英文文献?
随机推荐
毕业总结
Install docker and use docker to install MySQL
Go custom sort
Slf4j + Logback日志框架
Is the multitasking loss in pytoch added up or backward separately?
NC24840 [USACO 2009 Mar S]Look Up
Xcode real machine debugging
MySQL 23 classic interview hanging interviewer
setInterval定时器在ie不生效原因之一:回调的是箭头函数
Shell脚本基本使用
免费自媒体必备工具分享
Preview word documents online
【Pulsar文档】概念和架构/Concepts and Architecture
Bypass AV with golang
多进程编程(三):消息队列
Confluence的PDF导出中文文档异常显示问题解决
Andorid 获取系统标题栏高度
How do educators find foreign language references?
Monitor container runtime tool Falco
Maya fishing house modeling