当前位置:网站首页>Centos7 compiling and installing redis
Centos7 compiling and installing redis
2022-06-26 21:52:00 【Mobei v1】
gcc Environmental Science , Before installation, it is necessary to confirm whether to install gcc -v Environmental Science , If not installed , Execute the following command to install
yum install -y gcc
download Redis
Official website download address :https://redis.io/download
Find the version to download, right-click the copy download link
wget https://download.redis.io/releases/redis-6.2.6.tar.gz
decompression , install :
# decompression
tar xzf redis-6.2.6.tar.gz
Enter the unzipped directory redis-6.2.6
# Compilation and installation
make
make install PREFIX=/usr/local/redis
After this command is executed, a... Will be generated in the specified directory bin file
PREFIX= This keyword is used to specify the path where the program is stored at compile time . For example, we have designated redis It must be stored in /usr/local/redis Catalog . Suppose you don't add the keyword Linux The executable file will be stored in /usr/local/bin Catalog , Library files will be stored in /usr/local/lib Catalog . The configuration file will be stored in /usr/local/etc Catalog . Other resource files will be stored in usr/local/share Catalog . The directory number is specified here to facilitate subsequent unloading , Follow up direct rm -rf /usr/local/redis You can delete redis.
from redis Copy the source directory of redis.conf To redis Installation directory
cp /home/redis-6.2.6/redis.conf /usr/local/redis/bin/
Modify the configuration file redis.conf
# Modify the listening address , Allow all ip Address access
bind 0.0.0.0
# Modify daemon
daemonize yes
# Change Password
requirepass xxxxx
Background operation
./redis-server redis.conf
边栏推荐
- LabVIEW Arduino tcp/ip remote smart home system (project part-5)
- 中金财富开户安全吗?我想开户炒股。
- 矩阵求导及其链式法则
- Convolutional neural network (CNN) explanation and tensorflow2 code implementation
- 经典Wide & Deep模型介绍及tensorflow 2代码实现
- Operator介绍
- MATLAB and MySQL database connection and data exchange (based on ODBC)
- 打新债注册开户有没有什么风险?安全吗?
- 模块五作业
- 基于启发式搜索的一字棋
猜你喜欢

Parsing complex JSON in fluent

Android IO, a first-line Internet manufacturer, is a collection of real questions for senior Android interviews

QT based "synthetic watermelon" game

VB.net类库(进阶版——1)

MATLAB与Mysql数据库连接并数据交换(基于ODBC)

QT环境下配置Assimp库(MinGW编译器)
![leetcode:141. Circular linked list [hash table + speed pointer]](/img/19/f918f2cff9f831d4bbc411fe1b9776.png)
leetcode:141. Circular linked list [hash table + speed pointer]

Cause analysis of 12 MySQL slow queries

Netease Yunxin officially joined the smart hospital branch of China Medical Equipment Association to accelerate the construction of smart hospitals across the country

矩阵求导及其链式法则
随机推荐
The latest 2022 research review of "continuous learning, CL"
leetcode:1567. Length of the longest subarray whose product is a positive number [dp[i] indicates the maximum length ending with I]
API管理之利剑 -- Eolink
Is this a bug? Whether the randomly filled letters can be closed
大龄程序员的一些出路
The network connection is disconnected. Please refresh and try again
360 mobile assistant is the first to access the app signature service system to help distribute privacy and security
Fastadmin Aurora push send message registration_ Multiple IDs are invalid after being separated by commas
同花顺注册开户有没有什么风险?安全吗?
Final part of web crawler: send directional messages to 100000 Netease cloud users
YuMinHong: New Oriental does not have a reversal of falling and turning over, destroying and rising again
random_ normal_ Initializer uses
Y48. Chapter III kubernetes from introduction to mastery -- pod status and probe (21)
DAST 黑盒漏洞扫描器 第五篇:漏洞扫描引擎与服务能力
Configure redis master-slave and sentinel sentinel in the centos7 environment (solve the problem that the sentinel does not switch when the master hangs up in the ECS)
leetcode:152. 乘积最大子数组【考虑两个维度的dp】
Many gravel 3D material mapping materials can be obtained with one click
Comprehensive evaluation of online collaboration documents: note, flowus, WOLAI, Feishu, YuQue, Microsoft office, Google Docs, Jinshan docs, Tencent docs, graphite docs, Dropbox paper, nutcloud docs,
聊聊我的远程工作体验 | 社区征文
About appium trample pit: encountered internal error running command: error: cannot verify the signature of (solved)