System for CentOS7, create 9001-9006 6 folders, copy redis-server redis.conf files to 6 new folders
The redis.conf file is configured as follows:
Port 9001
Daemonize Yes
cluster-enabled Yes
Cluster-config-file nodes.conf
Cluster-node-timeout 3000
Cluster-require-full-coverage No
AppendOnly Yes
Enter the 900X folder, respectively, to run the ./redis-server./redis.conf Start Redsi Service
Yum Install Ruby
ruby-v View version
Yum Install RubyGems
gem-v View version
Gem Install Redis
Or
wget Https://rubygems.org/downloads/redis-3.2.2.gem
Gem Install-l./redis-3.2.1.gem
(Here I first download the Redis-3.2.1.gem file on the other machine, then put it on my site and download it to the CentOS system.)
Create a cluster (3 Master 3 from)
./redis-trib.rb Create--replicas 1 192.168.137.83:9001 192.168.137.83:9002 192.168.137.83:9003 192.168.137.83:9004 192.168.137.83:9005 192.168.137.83:9006
Cluster build successfully, run redis-cli-c-P 9001 View
Redis Cluster Build Notes