Install Redis
Install Redis cache service
Overview
Install Redis cache service
Commands
This will install Redis, continue?
sudo apt-get update && sudo apt-get install -y redis-server
sudo systemctl enable --now redis-server
Use Cases
Cache acceleration, session storage, message queue, distributed locks.
Prerequisites
Memory of >= 256MB recommended.
FAQ
- Accessible from the internet → check the config
bind 127.0.0.1to ensure local access only - Password authentication → configure the
requirepassparameter
Related Commands
- Install MySQL