In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
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!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.