Created
August 23, 2023 11:18
-
-
Save mahi424/0182011050778539a9dd4067f89fe5ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
install_snap_redis () { | |
sudo snap install redis | |
} | |
install_apt_redis () { | |
sudo apt install lsb-release curl gpg | |
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg | |
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list | |
sudo apt-get update | |
sudo apt-get install redis | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment