yum 安装最新版redis

1.安装

# sudo yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# sudo yum --enablerepo=remi install redis -y

2.设置集群

# (1)修改配置文件,将以下两行的注释去掉
cluster-enabled yes
cluster-config-file nodes-6379.conf

# (2)启动redis
# sudo systemctl restart redis
# redis-cli -h 127.0.0.1 -p 6379 cluster addslots {0..16383}

猜你喜欢

转载自blog.csdn.net/sun_xuegang/article/details/92573354