当前位置:网站首页>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
边栏推荐
- y48.第三章 Kubernetes从入门到精通 -- Pod的状态和探针(二一)
- 在Flutter中解析复杂的JSON
- curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection
- 【图像处理基础】基于matlab GUI图像直方图均衡化系统【含Matlab源码 1924期】
- Talk about my remote work experience | community essay solicitation
- Y48. Chapter III kubernetes from introduction to mastery -- pod status and probe (21)
- 2022年,中轻度游戏出海路在何方?
- Leetcode(452)——用最少数量的箭引爆气球
- leetcode:141. 环形链表【哈希表 + 快慢指针】
- 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)
猜你喜欢

Data governance does everything

Word chess based on heuristic search

leetcode:141. 环形链表【哈希表 + 快慢指针】

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

VB.net类库——4给屏幕截图,裁剪

【题解】剑指 Offer 15. 二进制中1的个数(C语言)

VB.net类库(进阶——2 重载)

360手机助手首家接入APP签名服务系统 助力隐私安全分发

AI intelligent matting tool - hair can be seen

卷积神经网络(CNN)详解及TensorFlow2代码实现
随机推荐
在哪家证券公司开户最方便最安全可靠
Using C to operate SQLSERVER database through SQL statement tutorial
中金财富开户安全吗?我想开户炒股。
打新债注册开户有没有什么风险?安全吗?
Is it safe for CICC fortune to open an account? I want to open an account to speculate in stocks.
2022年,中轻度游戏出海路在何方?
Data governance does everything
360手机助手首家接入APP签名服务系统 助力隐私安全分发
VB.net类库(进阶版——1)
Godson China Science and technology innovation board is listed: the market value is 35.7 billion yuan, becoming the first share of domestic CPU
聊聊我的远程工作体验 | 社区征文
Some ways out for older programmers
Flutter 中 ValueNotifier<List<T>> 监听问题解决
基于启发式搜索的一字棋
Parsing complex JSON in fluent
在哪个平台买股票开户最安全?求分享
vulnhub之DC9
BN(Batch Normalization) 的理论理解以及在tf.keras中的实际应用和总结
证券注册开户有没有什么风险?安全吗?
leetcode:1567. Length of the longest subarray whose product is a positive number [dp[i] indicates the maximum length ending with I]