Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy redis cluster with docker

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use docker to deploy redis cluster. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Preface

Because I am a docker control, do not like to install a variety of environments, and the installation of redis-trib is also a bit cumbersome, just use docker to do redis cluster.

Pseudo-clusters are used in this article, and the real clusters can be put on different machines. The port is 7001-7006.

Working directory: / data/redis

Create a folder

First create a bunch of folders for the corresponding ports, here is the script

Create.sh

Done.

Problems encountered

When creating a cluster, you will encounter Waiting for the cluster to join. Has never been successful.

A: the network mode is changed to host,docker run plus-- net host,docker-compose plus network_mode: host.

I was originally a port mapping 7001VR 7000mm 17001VR 17000, but I can't do it. I don't know why.

This is the end of this article on "how to deploy redis cluster with docker". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Original link: http://www.cnblogs.com/chenchuxin/p/8404699.html

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report