Skip to content

Instantly share code, notes, and snippets.

@ditikrushna
Created February 11, 2022 08:41
Show Gist options
  • Save ditikrushna/51d810e5f697ea8a87950bd92e7c28bb to your computer and use it in GitHub Desktop.
Save ditikrushna/51d810e5f697ea8a87950bd92e7c28bb to your computer and use it in GitHub Desktop.
How to Install Redis on EC2 Instance
Step : 1
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
Step : 2
sudo make test
Step : 3
sudo cp src/redis-server /usr/local/bin/
sudo cp src/redis-cli /usr/local/bin/
Step : 4
redis-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment