SSH into your EC2 instance. Run the following:
$ sudo yum install gcc
This may return an "already installed" message. That's OK.
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make
SSH into your EC2 instance. Run the following:
$ sudo yum install gcc
This may return an "already installed" message. That's OK.
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make
It's very help for me!Thanks.
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
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 [email protected]
With AL2, this is the most straightforward method:
sudo amazon-linux-extras install -y redis6
With AL2, this is the most straightforward method:
sudo amazon-linux-extras install -y redis6
Thanks! 👍
Needs an update for AL2023...
Thanks @amitsaxena -- using AWS' new 2023 ami, this worked wonderfully (:
+1: