Several notes on creating a redis cluster

This is also the first time I have created a redis cluster. I still don’t know what the use of this cluster is. Due to the project, I have no choice but to install it.
In fact, there are many ways to install redis and create clusters online. I recommend one to everyone. I followed this method. But I also encountered some pitfalls. This time I am not mainly teaching you how to install a cluster. I will give you some pitfalls.
1. When installing redis, the configuration file must be configured properly. In addition to commenting out the basic
bind 127.0.0.1, removing the protected mode, etc., all cluster configuration items must be turned on.
Cluster configuration items
2. Some configuration items are configured with paths. For example,
Configuration with path
these paths must be written correctly, otherwise it will not start.
3. Before creating a cluster, you must first test the connectivity to see if all the started redis services can be connected through the external network (x-shell can be used) 4. The point is that this step is particularly
important. The corresponding port must be open to the outside world. Otherwise the creation will fail. Let me talk about it here, it is just the port for redis startup. After redis is started, if you want to create a cluster, you need to start its corresponding port. For example, port 7001 corresponds to port 17001. This is a redis feature, so port 17001 must also be opened. . It’s a bit troublesome to say, because I just stepped on this big pit and was a little excited.
5. Another thing is, you must be patient, check for errors slowly, and eliminate them. Believe in yourself and don't be arrogant or impatient. It will always be created.
Finally, if you encounter any pitfalls, you can discuss them together.
By the way, I am a Java programmer for one year. Everyone is welcome to study, discuss and make progress together.
Installation URL: https://blog.csdn.net/mst1010/article/details/80984699

Guess you like

Origin blog.csdn.net/weixin_40741732/article/details/105251876