redis集群部署linux docker
时间: 2023-09-15 15:24:49 浏览: 142
K8s 应用 - Redis(集群)
回答: 在Linux上使用Docker部署Redis集群,可以使用以下命令进行部署:
1. 使用redis:6.0.8镜像运行一个Redis节点,命名为redis-node-8,在主机网络模式下运行,并挂载数据目录/data/redis/share/redis-node-8:
```
docker run -d --name redis-node-8 --net host --privileged=true -v /data/redis/share/redis-node-8:/data redis:6.0.8 --cluster-enabled yes --appendonly yes --port 6388
```
<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Docker集群部署-redis集群](https://blog.csdn.net/zn2021220822/article/details/131584692)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Linux系统下使用docker来部署Redis集群](https://blog.csdn.net/qq_15247809/article/details/127839645)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文