Skip to content

Instantly share code, notes, and snippets.

@gabidj
Forked from todgru/aws-ec2-redis-cli.md
Last active January 20, 2021 20:00
Show Gist options
  • Save gabidj/70736a679c78011e0e4534119e96e6bc to your computer and use it in GitHub Desktop.
Save gabidj/70736a679c78011e0e4534119e96e6bc to your computer and use it in GitHub Desktop.
AWS redis-cli on EC2

Setup redis-cli on AWS EC2

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

See: http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/GettingStarted.ConnectToCacheNode.Redis.html

sudo yum install -y gcc
wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make
sudo cp src/redis-cli /usr/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment