Skip to content

Instantly share code, notes, and snippets.

@paul-lupu
Created August 10, 2023 09:24
Show Gist options
  • Save paul-lupu/514cc3d9c3d80a3a633ac5c69a1c9e8e to your computer and use it in GitHub Desktop.
Save paul-lupu/514cc3d9c3d80a3a633ac5c69a1c9e8e to your computer and use it in GitHub Desktop.
Install redis-cli with TLS enabled on Amazon Linux 2
#!/bin/bash
yum groupinstall -y "@development"
yum install -y gcc python3 pkgconfig openssl-devel tcl jemalloc jemalloc-devel wget
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make PREFIX=/usr USE_SYSTEMD=no MALLOC=jemalloc V=1 BUILD_TLS=yes install
chmod a+x src/redis-cli
cp src/redis-cli /usr/bin/
@paul-lupu
Copy link
Author

Run with sudo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment