当前位置:网站首页>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
边栏推荐
- What are the accounting elements
- What is the “ How to remove a custom form list?
- 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,
- Background search, how to find the website background
- Can compass open an account for stock trading? Is it safe?
- Word chess based on heuristic search
- nmap参数详解
- Usage of MGrid in numpy
- 亿级月活全民K歌Feed业务在腾讯云MongoDB中的应用及优化实践
- Shiniman household sprint A shares: annual revenue of nearly 1.2 billion red star Macalline and incredibly home are shareholders
猜你喜欢
![[leetcode]- linked list-2](/img/f7/9d4b01285fd6f7fa9f3431985111b0.png)
[leetcode]- linked list-2

用C#通过sql语句操作Sqlserver数据库教程

Redis + guava local cache API combination, performance burst!

QT环境下配置Assimp库(MinGW编译器)

Test comparison of linear model LN, single neural network SNN, deep neural network DNN and CNN

In 2022, where will the medium and light-weight games go?

会计要素包括哪些内容

Kdd2022 𞓜 unified session recommendation system based on knowledge enhancement prompt learning

Web crawler 2: crawl the user ID and home page address of Netease cloud music reviews

Hands on deep learning pytorch version 3 - Data Preprocessing
随机推荐
大龄程序员的一些出路
VB.net类库(进阶版——1)
网络爬虫2:抓取网易云音乐评论用户ID及主页地址
leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]
如何用 SAP BTP 平台上的图形建模器创建一个 OData 服务
线性模型LN、单神经网络SNN、深度神经网络DNN与CNN测试对比
【数学建模】基于matlab GUI随机节点的生成树【含Matlab源码 1919期】
Is it safe to open a stock account with the QR code given by the CICC securities manager? I want to open an account
nmap参数详解
Different subsequence problems I
DLA模型(分类模型+改进版分割模型) + 可变形卷积
请问CMS里UniAPP版本中的“自定义表单列表如何去掉?
卷积神经网络(CNN)详解及TensorFlow2代码实现
Yolov6: un cadre de détection de cibles rapide et précis est Open Source
「连续学习Continual learning, CL」最新2022研究综述
JupyterLab 常用配置
Redis + guava local cache API combination, performance burst!
这个算BUG吗?乱填的字母是否可以关闭
PostgreSQL notes
茂莱光学科创板上市:拟募资4亿 范一与范浩兄弟为实控人