Skip to content

Instantly share code, notes, and snippets.

@cyrrill
Created March 2, 2023 23:20
Show Gist options
  • Save cyrrill/367c91675e1bb8d65fb2f27012c5850a to your computer and use it in GitHub Desktop.
Save cyrrill/367c91675e1bb8d65fb2f27012c5850a to your computer and use it in GitHub Desktop.
Redis Stack
#! /bin/bash
if [ -x "$(command -v redis-cli)" ]; then
exit 0
fi
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-stack-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment