Skip to content

Instantly share code, notes, and snippets.

@Integralist
Last active May 30, 2023 02:58
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save Integralist/72161a96641fa4a0033d to your computer and use it in GitHub Desktop.
Save Integralist/72161a96641fa4a0033d to your computer and use it in GitHub Desktop.
Install Redis CLI on AWS Instance
  • ssh 10.6.11.62,eu-west-1
  • sudo yum install gcc
  • sudo yum install wget
  • wget http://download.redis.io/redis-stable.tar.gz
  • tar xvzf redis-stable.tar.gz
  • cd redis-stable
  • make
  • src/redis-cli -h mycachecluster.eaogs8.0001.usw2.cache.amazonaws.com -p 6379

Now run redis commands:

  • Keys *: list all keys
  • set foo "bar": set a new key
  • get foo: get a specific key
@willsmanley
Copy link

On my machines I found that you have to run sudo make distclean prior to running make.

@pramodpatwawork
Copy link

please remove or add warning to example "Keys *: list all keys" else it may cause crash cluster.

@thapabishwa
Copy link

sudo amazon-linux-extras install redis6

@Alkavanyatur
Copy link

I got fatal error: jemalloc/jemalloc.h on AWS

Runned with: make MALLOC=libc

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