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
Simple way to install
Thanks!
How to install redis-cli with --tls flag enabled ? By default --tls is not enabled.
sudo amazon-linux-extras install redis6
thanks, @thapabishwa, worked for me. thanks
sudo amazon-linux-extras enable redis6
sudo yum clean metadata
sudo yum update
sudo yum install redis
Thanks
faced this issue recently
Combining all solutions is what I shared with DevOps on the Ubuntu system.
sudo wget http://download.redis.io/redis-stable.tar.gz
sudo tar xvzf redis-stable.tar.gz
cd redis-stable
sudo apt-get install libssl-dev
sudo make BUILD_TLS=yes
./src/redis-cli -h <REDIS_HOST> --tls -p 6379
On Amazon Linux 2 this worked for me:
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum update -y
yum install -y redis
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
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
Thanks @amitsaxena -- using AWS' new 2023 ami, this worked wonderfully (:
+1:
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...
Run the following commands line by line to install Redis and dependencies.