当前位置:网站首页>Linux Software: how to install redis service
Linux Software: how to install redis service
2022-07-03 00:32:00 【Chief fisherman】
First step : take redis Upload the installation package to our server

The second step : Unzip the file and move to /usr/local/redis In the table of contents , If not, create it by yourself
1、 decompression
[[email protected] home]# tar -zxvf redis-4.0.8.tar.gz
2、 Move
[[email protected] home]# mv redis-4.0.8 /usr/local/redis/
The third step : Compile and install
1、 Get into redis Directory execution make Command compilation
[[email protected] redis-4.0.8]# make

** At this time, I met cc Error execute the following command , Recompile it
[[email protected] redis-4.0.8]# yum -y install gcc automake autoconf libtool make

[[email protected] redis-4.0.8]# make

** At this time, if you encounter a fatal error , Add... After command MALLOC=libc
[[email protected] redis-4.0.8]# make MALLOC=libc

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

3、 start-up redis
[[email protected] redis-4.0.8]# ./src/redis-server redis.conf

Step four : take redis Change from Startup to background operation
1、 modify redis.conf The configuration file will include daemonize no Change it to daemonize yes that will do
[[email protected] redis-4.0.8]# vi redis.conf

2、 Restart and use ps -ef | grep redis Check the status
[[email protected] redis-4.0.8]# ./src/redis-server redis.conf

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

Installation completed !
Baidu SkyDrive
Extraction code : 4kss
边栏推荐
- NC24325 [USACO 2012 Mar S]Flowerpot
- Which websites can I search for references when writing a thesis?
- 哪些软件可以整篇翻译英文论文?
- NC24840 [USACO 2009 Mar S]Look Up
- Shell脚本基本使用
- 多进程编程(五):信号量
- [shutter] Introduction to the official example of shutter Gallery (project introduction | engineering construction)
- Should you study kubernetes?
- 教育学大佬是怎么找外文参考文献的?
- 【雅思阅读】王希伟阅读P1(阅读判断题)
猜你喜欢

Multiprocess programming (I): basic concepts

Basic use of shell script

University of Toronto:Anthony Coache | 深度强化学习的条件可诱导动态风险度量

Mutual exclusion and synchronization of threads

Introduction of UART, RS232, RS485, I2C and SPI

Shell 实现文件基本操作(切割、排序、去重)

Architecture: load balancing

Where can I find the English literature of the thesis (except HowNet)?

Confluence的PDF导出中文文档异常显示问题解决

【雅思阅读】王希伟阅读P1(阅读判断题)
随机推荐
百数不断创新,打造自由的低代码办公工具
关于Unity屏幕相关Screen的练习题目,Unity内部环绕某点做运动
简单聊聊运维监控的其他用途
LeedCode1480.一维数组的动态和
One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function
Multiprocess programming (II): Pipeline
监控容器运行时工具Falco
Chapter 4 of getting started with MySQL: data types stored in data tables
Talk with the interviewer about the pit of MySQL sorting (including: duplicate data problem in order by limit page)
Go custom sort
免费自媒体必备工具分享
[Chongqing Guangdong education] audio visual language reference materials of Xinyang Normal University
Slf4j + logback logging framework
MySQL 23 classic interview hanging interviewer
Why is the website slow to open?
ftrace工具的介绍及使用
How to specify const array in the global scope of rust- How to specify const array in global scope in Rust?
NC50965 Largest Rectangle in a Histogram
[MCU project training] eight way answering machine
Helm basic learning