7

I want to set-up a redis cluster on Mac via the create-cluster script as mentioned in Cluster tutorial. I am not able to locate the create-cluster script on Mac.

I am using redis 3.2.0 installed via brew on Mac OS X 10.11.6 (15G31).

Can someone let me know where create-cluster script is located in Mac?

tuk
  • 5,941
  • 14
  • 79
  • 162

2 Answers2

8

I'm on Mac 10.15.5, have installed the Redis 6.0.5 via brew, and don't see create-cluster script too within such installation.

So, I followed the following steps:

  1. Donwload the latest manual installation, i.e. redis-%version%.tar from the official site.
  2. Copy the folder utils from dowloaded archive to my local redis destination folder, i.e. /usr/local/Cellar/redis/6.0.5 in my case.
  3. Change create-cluster file. There are settings inside: BIN_PATH="../../src/" to BIN_PATH="../../bin/" in order this cluster script can find the related redis scripts.
  4. Follow the guide https://redis.io/topics/cluster-tutorial

For me it works now.

kolya_metallist
  • 589
  • 9
  • 20
7

I was not able to create cluster via the redis installed via brew. So I did the following:-

  • Downloaded the latest version from Redis from here. In my case Redis 3.2.5
  • Then followed the installation instruction as mentioned here.
  • create-cluster is located inside $DOWNLOAD/redis-3.2.5/utils/create-cluster where $DOWNLOAD is the location where I downloaded and untar the redis.
tuk
  • 5,941
  • 14
  • 79
  • 162