Install Redis On Amazon Linux 2
- Update the system packages:
sudo yum update -y
- Install the Redis package using the Amazon Linux Extra Packages for Enterprise Linux (EPEL) repository
sudo amazon-linux-extras install epel
sudo amazon-linux-extras install redis6
- Start the Redis service & Enable Redis to start automatically at boot time
sudo systemctl start redis
sudo systemctl enable redis
- Verify the Redis installation by checking its version
redis-server --version
redis-cli --version