Skip to content

Instantly share code, notes, and snippets.

@hachesilva
Created December 26, 2020 18:43
Show Gist options
  • Save hachesilva/2c53cf985cd5fd5045cdc9fa9e11e1ab to your computer and use it in GitHub Desktop.
Save hachesilva/2c53cf985cd5fd5045cdc9fa9e11e1ab to your computer and use it in GitHub Desktop.
Install redis on WSL / ubuntu
# Source: https://anggo.ro/note/installing-redis-in-ubuntu-wsl/
# Update and upgrade Ubuntu
sudo apt update && apt upgrade
# Install Redis
sudo apt install redis-server
# Update redis.conf file
sudo nano /etc/redis/redis.conf
# Find supervised no line and change to supervised systemd since Ubuntu uses the systemd init system.
# Start Redis
sudo service redis-server start
# Test Redis
redis-cli
ping
# If everythging is ok you will get "PONG" in the CLI
set test "It's test"
get test
# Test Redis Persistant Data
sudo service redis-server restart
redis-cli
get test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment