redis-sentinel安装
时间: 2023-09-28 19:08:04 浏览: 131
Redis-Sentinel高可用架构学习
要安装redis-sentinel,首先需要下载、解压、编译和安装redis。具体步骤如下:
1. 安装必要的linux库:
```
yum install gcc
yum install tcl
```
2. 创建redis用户和组:
```
groupadd redis
useradd -g redis redis
```
3. 修改redis用户密码:
```
passwd redis
```
4. 使用root账户切换到redis目录:
```
cd /home/redis
```
5. 下载redis源码redis-3.2.0.tar.gz:
```
wget http://download.redis.io/releases/redis-3.2.0.tar.gz
```
6. 解压redis-3.2.0.tar.gz:
```
tar -zxvf redis-3.2.0.tar.gz
```
7. 编译和安装:
```
cd /home/redis/redis-3.2.0
make
make install
```
安装完成后,系统目录`/usr/local/bin`下会生成redis相关文件。请根据实际情况进行调整。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [redis-sentinel安装部署](https://blog.csdn.net/xiyang_1990/article/details/78260019)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文