Hello Linux: Install Redis
By Justin

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
Looking for local redis installation?
Requirements
Be sure to complete
- Git Push Local Code to Live Linux Server
- Virtual Environment in Working Directory
- PostgreSQL on Live Linux Server
- Setup Gunicorn & Supervisor
- Nginx & UFW Firewall
- Custom Domain & Https with Let's Encrypt
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
- Git Setup for Push/Pulling Code From Local to Production
- Working Directory with a Virtual Environment
- PostgreSQL on Live Linux Server
- Setup Gunicorn & Supervisor
- Nginx & UFW Firewall
- Custom Domain + HTTPs with Let's Encrypt
- Redis Installed (this post)
Still coming, but optional
- Task Queues with Celery & Redis