To Create a redis cluster with redis5: - Download source code. - Compile it. `make` - cd - mkdir 7003 7004 7005 - cp /src/redis-cli --cluster create 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005 --cluster-replicas 0` In cases where at times the cluster needs to be created again using these nodes and you see error like ```[ERR] Node 127.0.0.1:30078 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.``` Then get inside each node and `flushall` and `cluster reset`. Do this. And try to create cluster again. See [this](https://stackoverflow.com/a/38872895/1229355) link. # One more way to do it Download the source code `curl -O http://download.redis.io/redis-stable.tar.gz` `make` `make install` ### Optional `cd utils/create-cluster` Modify create-cluster scrip to provide proper hostname. `./create-cluster start` ``` /opt/redis-6.0.6/src/redis-cli --cluster call localhost:30001 CONFIG SET protected-mode no /opt/redis-6.0.6/src/redis-cli --cluster call localhost:30002 CONFIG SET protected-mode no /opt/redis-6.0.6/src/redis-cli --cluster call localhost:30003 CONFIG SET protected-mode no /opt/redis-6.0.6/src/redis-cli --cluster call localhost:30004 CONFIG SET protected-mode no /opt/redis-6.0.6/src/redis-cli --cluster call localhost:30005 CONFIG SET protected-mode no /opt/redis-6.0.6/src/redis-cli --cluster call localhost:30006 CONFIG SET protected-mode no ``` And if you want to avoid above 6 commands, then you can acutally set `PROTECTED_MODE=no` in `create-cluster` script. :D `./create-cluster create` That is all. Redis doesn't support hostname. So be aware: https://github.com/redis/redis/issues/2410