How to Install Redis on Ubuntu 18.04

Updated: 5th December 2019
Tags: redis ubuntu

Updating apt package info and install redis

sudo apt update
sudo apt install redis-server

Config redis

sudo nano /etc/redis/redis.conf

Cnage supervised to systemd

Find line that starts with supervised and change it to systemd

. . .

supervised systemd

. . .

Restart redis

sudo systemctl restart redis.service

Test redis

redis-cli

Type in redis cli

ping

And it should return

PONG