Hello Linux: Install Redis

By Justin

Hello Linux: Install Redis
This is the seventh post of a many part series. This post is the starter post for the whole series.
Redis is a datastore for "queued messages" which just means it's like a list of items that can be consumed

Requirements
Be sure to complete
Our Live Server
  • Ubuntu 18.04

1. SSH into your server

Replace [email protected] with your user / ip

2. Install Redis

sudo apt update -y
sudo apt install redis-server -y

3. Test Installation

redis-cli ping
You should see:
$ redis-cli ping
pong
By default, your redis host is: redis://localhost:6379

4. Update Redis to Systemd

If you're using Ubuntu, change supervised no to supervised systemd in sudo nano /etc/redis/redis.conf
So in sudo nano /etc/redis/redis.conf, it has this setting:
# Note: these supervision methods only signal "process is ready."
#       They do not enable continuous liveness pings back to your supervisor.
supervised systemd

5. Reload & Restart

systemctl daemon-reload
sudo systemctl restart redis.service

Wrap Up

We now have
Still coming, but optional
  • Task Queues with Celery & Redis
Discover Posts