Skip to content

Instantly share code, notes, and snippets.

@paladini
Forked from todgru/aws-ec2-redis-cli.md
Last active February 20, 2024 04:05
Show Gist options
  • Star 68 You must be signed in to star a gist
  • Fork 17 You must be signed in to fork a gist
  • Save paladini/972d987cc5be189740737a5973eea4a3 to your computer and use it in GitHub Desktop.
Save paladini/972d987cc5be189740737a5973eea4a3 to your computer and use it in GitHub Desktop.
AWS redis-cli without redis server on AWS EC2

Setup redis-cli without the whole Redis Server on AWS EC2

This fast tutorial will teach you how to install redis-clion AWS EC2 without having to install the whole Redis Server. Firstly, SSH into your EC2 instance and run the following command:

$ sudo yum install gcc

This may return an "already installed" message, but that's OK. After that, just run:

$ 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/local/bin/ && sudo chmod 755 /usr/local/bin/redis-cli

In order to connect to your remote server, use something like:

$ redis-cli -h 192.268.34.32

References:

@craftypenguins-chris
Copy link

Please adjust the instructions to yum install gcc64

gcc is too old on default build

@djpritchett
Copy link

glad I found this...thanks for posting..

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