Redis Cluster Setup on Local

  • Step 1: Download the latest version from the following link and extract the files.
    https://redis.io/download
    NOTE: If the latest version creates any issues please download the version 5.0.8
  • Step 2: Go to the redis folder (cd redis-6.0.8/) and run the ‘make’ command. If there is a issue running make command, run ‘make test’ instead.
  • Step 3: Navigate to utils/create-cluster/ .
  • As All cluster are using password now then we should skip above steps and directly move to Setup AUTH on cluster
  • Step 4: Start the cluster by command : ./create-cluster start
  • Step 5: Create the cluster: ./create-cluster create
  • Step 6: Test the cluster using command: redis-cli -c -p <port number>
    e.g.
    redis-cli -c -p 30001
  • Step 7: For starting a new cluster on different port, open the script /redis-6.0.8/utils/create-cluster Find PORT=30000, and set it with your desired port number and run the steps 3-7 again.

Leave a comment