Skip to content

Instantly share code, notes, and snippets.

@kkashyap1707
Forked from todgru/aws-ec2-redis-cli.md
Created November 7, 2023 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkashyap1707/630a5089277b20ea0b5acea6167a39b4 to your computer and use it in GitHub Desktop.
Save kkashyap1707/630a5089277b20ea0b5acea6167a39b4 to your computer and use it in GitHub Desktop.
AWS redis-cli on EC2
@kkashyap1707
Copy link
Author

Run the following commands line by line to install Redis and dependencies.

sudo yum -y install gcc make # install GCC compiler
cd /usr/local/src
sudo wget http://download.redis.io/redis-stable.tar.gz
sudo tar xvzf redis-stable.tar.gz
sudo rm -f redis-stable.tar.gz
cd redis-stable
sudo yum groupinstall "Development Tools"
sudo make distclean
sudo make
sudo yum install -y tcl
sudo make test
sudo cp src/redis-server /usr/local/bin/
sudo cp src/redis-cli /usr/local/bin/
redis-server
redis-cli

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