Created
December 26, 2020 18:43
-
-
Save hachesilva/2c53cf985cd5fd5045cdc9fa9e11e1ab to your computer and use it in GitHub Desktop.
Install redis on WSL / ubuntu
This file contains hidden or 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
# 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