sudo yum -y install gcc gcc-c++ tcl zlib zlib-devel ruby ruby-devel rubygems rpm-build
# 下载 redis-3.2.1.gem然后本地安装
sudo gem install -l ./redis-3.2.1.gem
port 6379
daemonize yes
#bind自己的ip
bind 192.168.129.101
protected-mode no
#启用集群
cluster-enabled yes
cluster-config-file nodes-7000.conf
#先启动各节点
#组成集群
redis-5.0.14/src/redis-cli --cluster create 192.168.129.98:7000 192.168.129.99:7003 192.168.129.99:7002 192.168.129.126:7005 192.168.129.126:7004 192.168.129.98:7001 --cluster-replicas
2022-06-10 14:03:52
1.97MB
redis5
1