Get the App
SLTechnology News&Howtos  ›  Database  › 

How to install and build a redis cluster 4.0.9 cluster

Shulou Source: shulou.com Published: 2022-05-31 15:24:12 09月16日 Update

This article focuses on "how to install and build a redis cluster 4.0.9 cluster". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install and build a redis cluster 4.0.9 cluster.

Redis Cluster 4.0.9 Cluster Building steps:

Yum install-y gcc gathers + gcc-c++ make openssl

Cd redis-4.0.9

Make

Mkdir-p / usr/local/redis-4.0.9

Make install PREFIX=/usr/local/redis-4.0.9

Mkdir-p / usr/local/ruby-2.4.0

Cd ruby-2.4.0

. / configure-prefix=/usr/local/ruby-2.4.0

Make & & make install

Yum install rubygems

Gem install-l redis-3.3.3.gem

Gem list-check redis gem

Vi / etc/profile

Source / etc/profile

Export PATH=/usr/local/ruby-2.4.0/bin/:$PATH

Configure password

Vi / usr/local/ruby-2.4.0/lib/ruby/gems/2.4.0/gems/redis-3.3.3/lib/redis/client.rb

Start redis on each server:

/ usr/local/redis-4.0.9/bin/redis-server / u01/redis/2002/conf/redis_2002.conf

/ usr/local/redis-4.0.9/bin/redis-server / u01/redis/3003/conf/redis_3003.conf

Redis-trib.rb create-- replicas 1 192.168.11.11 Virgo 2002 192.168.11.11 Vol 3003 192.168.11.12 Vera 2002 192.168.11.12 Vera 3003 192.168.11.13 Vera 2002 192.168.11.13 Ru 3003

View cluster relationships

Redis-cli-h 192.168.11.11-p 2002-c-a "yoon" cluster nodes

View redis-cluster cluster relationships

Redis-cli-h 192.168.11.11-p 2002-c cluster slots | xargs-N8 | awk'{print $3 ":" $4 "- >" $6 ":" $7}'| sort-nk2-t':'| uniq

At this point, I believe you have a deeper understanding of "how to install and build a redis cluster 4.0.9 cluster". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Cluster content learning practical deeper interested practical practical easy to operate method more friends servers steps websites channels services queries configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Information Shulou Technology Docker MySQL