Skip to content

Instantly share code, notes, and snippets.

@wfairclough
Last active August 30, 2021 20:26
Show Gist options
  • Save wfairclough/d191b8aac7e3e2f6f6e3ec35f1328cdc to your computer and use it in GitHub Desktop.
Save wfairclough/d191b8aac7e3e2f6f6e3ec35f1328cdc to your computer and use it in GitHub Desktop.
Script to Download and build redis-cli with tls support on Ubuntu
sudo apt install -y git curl jq net-tools build-essential gcc clang wget tcl tcl-dev libssl-dev libjemalloc-dev pkg-config
wget http://download.redis.io/redis-stable.tar.gz
tar xvf redis-stable.tar.gz
cd redis-stable
cd deps
CC=clang make BUILD_TLS=yes hiredis lua jemalloc linenoise
cd ..
CC=clang make BUILD_TLS=yes
src/redis-cli -h <CLUSTER_HOST> -c -p 6379 --tls --user <USER> --pass <PASSWORD>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment