Skip to content

Instantly share code, notes, and snippets.

@todgru
Created June 12, 2014 23:01
Show Gist options
  • Save todgru/14768fb2d8a82ab3f436 to your computer and use it in GitHub Desktop.
Save todgru/14768fb2d8a82ab3f436 to your computer and use it in GitHub Desktop.
AWS redis-cli on EC2
@1-0-01
Copy link

1-0-01 commented Apr 19, 2023

It's very help for me!Thanks.

@carlosmedina-io
Copy link

On Amazon Linux you can use this:

$ sudo yum install gcc openssl-devel
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make BUILD_TLS=yes

and then connect using this:

$ src/redis-cli -h conn-string-elasticache.amazonaws.com -p 6379 --tls

// If you have auth
$ src/redis-cli -h conn-string-elasticache.amazonaws.com -p 6379 --tls -a password

This is the way!! Thanks @amitsaxena

@daudmalik06
Copy link

Very Simple:

For Ubuntu/Debian-based Systems

sudo apt-get update
sudo apt-get install redis-tools

For Amazon Linux/RedHat-based Systems
sudo yum install redis

for more help feel free to reach out at info@devnack.com

@rannn505
Copy link

With AL2, this is the most straightforward method:
sudo amazon-linux-extras install -y redis6

@blaskovicz
Copy link

With AL2, this is the most straightforward method: sudo amazon-linux-extras install -y redis6

Thanks! 👍

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