In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "Redis cluster building method", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's train of thought slowly in depth, together to study and learn "Redis cluster building method"!
prerequisite
Must have installed ruby, rubygem, can use Internet
Must be above redis3.0 to cluster
1. Gem install redis installs the interface for connecting ruby to redis through gem.
two。 Set up a cluster working directory cluster-test
3. Under cluster-test, create a directory of 7000pc7001jpg 7002pc7003pr 7004pc7005 to represent the running port.
4. Create a redis.conf file in each directory. Pay attention to modify port
Port 7000
Cluster-enabled yes
Cluster-config-file nodes.conf
Cluster-node-timeout 5000
Appendonly yes
5. Install redis3.0 according to the top installation, only more than 3.0 can be clustered. Copy the execution file under src into cluster-test.
6. Open 6 terminals, go to their respective port directories and execute.. / redis-server. / redis-conf, and each directory will generate node.conf inclusions. Permanent information for this node.
7. Go to the cluster-test directory and execute. / redis-trib.rb create-- replicas 1 127.0.0.1 replicas 7000 127.0.1 replicas 7002 127.0.0.1 replicas 7002 127.0.1 7003 127.0.1 Freight 7004 127.0.1Rang7005 set up the cluster.
OK
8. You can see the node information by executing cluster nodes after executing. / redis-cli-c-p 7000.
9. You can deploy to different computers by changing the above port and ip.
Thank you for your reading. The above is the content of "Redis Cluster Building method". After the study of this article, I believe you have a deeper understanding of the Redis cluster building method, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.