Closed yogjun closed 4 years ago
1.安装redis https://github.com/MSOpenTech/redis/releases 2.将Redis启动在多端口 创建两个配置文件redis.windows.conf 将其中的端口号改为不相同,分别启动。 redis-server.exe redis6379.windows.conf redis-cli.exe -h 127.0.0.1 -p 6379 (推荐一款可视化工具)https://fastoredis.com/
1.修改redis的配置文件 cluster-enabled yes cluster-config-file nodes_6380.conf cluster-node-timeout 5000 appendonly yes 2.安装ruby https://rubyinstaller.org/downloads/ 3.安装rubygems https://rubygems.org/pages/download ruby setup.rb 4.安装集群脚本redis-trib redis-trib.zip ruby redis-trib.rb create --replicas 1 127.0.0.1:6379 127.0.0.1:6380 127.0.0.1:6381 master节点不能少于3个
一:redis搭建
1.安装redis https://github.com/MSOpenTech/redis/releases 2.将Redis启动在多端口 创建两个配置文件redis.windows.conf 将其中的端口号改为不相同,分别启动。 redis-server.exe redis6379.windows.conf redis-cli.exe -h 127.0.0.1 -p 6379 (推荐一款可视化工具)https://fastoredis.com/
二:创建集群
1.修改redis的配置文件 cluster-enabled yes
cluster-config-file nodes_6380.conf
cluster-node-timeout 5000
appendonly yes
2.安装ruby https://rubyinstaller.org/downloads/ 3.安装rubygems https://rubygems.org/pages/download ruby setup.rb 4.安装集群脚本redis-trib redis-trib.zip ruby redis-trib.rb create --replicas 1 127.0.0.1:6379 127.0.0.1:6380 127.0.0.1:6381 master节点不能少于3个