当前位置:网站首页>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
边栏推荐
- 会计要素包括哪些内容
- [leetcode]- linked list-2
- 请问CMS里UniAPP版本中的“自定义表单列表如何去掉?
- 龙芯中科科创板上市:市值357亿 成国产CPU第一股
- leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]
- leetcode:710. Random numbers in the blacklist [mapping thinking]
- 十大券商注册开户有没有什么风险?安全吗?
- Netease Yunxin officially joined the smart hospital branch of China Medical Equipment Association to accelerate the construction of smart hospitals across the country
- ICML2022 | Neurotoxin:联邦学习的持久后门
- 矩阵求导及其链式法则
猜你喜欢

基于启发式搜索的一字棋
![leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]](/img/16/8dc63e6494b3f23e2685e287abc94c.png)
leetcode:6103. Delete the minimum score of the edge from the tree [DFS + connected component + value record of the subgraph]

Shiniman household sprint A shares: annual revenue of nearly 1.2 billion red star Macalline and incredibly home are shareholders

Data governance does everything

网易云信正式加入中国医学装备协会智慧医院分会,为全国智慧医院建设加速...

How to analyze financial expenses

协同过滤进化版本NeuralCF及tensorflow2实现

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

The latest 2022 research review of "continuous learning, CL"

QT based "synthetic watermelon" game
随机推荐
leetcode:6103. 从树中删除边的最小分数【dfs + 联通分量 + 子图的值记录】
Vi/vim editor
BN(Batch Normalization) 的理论理解以及在tf.keras中的实际应用和总结
Is there any risk in registering and opening an account for stock speculation? Is it safe?
PostgreSQL notes
VB.net类库——4给屏幕截图,裁剪
指南针能开户炒股吗?安全吗?
传纸条【动态规划】
在哪家券商公司开户最方便最安全可靠
360手机助手首家接入APP签名服务系统 助力隐私安全分发
[LeetCode]-链表-2
「连续学习Continual learning, CL」最新2022研究综述
股票炒股注册开户有没有什么风险?安全吗?
会计要素包括哪些内容
Solution of valuenotifier < list < t > > monitoring problem in fluent
Is it safe for CICC fortune to open an account? I want to open an account to speculate in stocks.
API管理之利剑 -- Eolink
How to analyze financial expenses
Parsing complex JSON in fluent
Hands on deep learning pytorch version 3 - Data Preprocessing