Installing and Starting Redis
Harry
· 13 Sep 2026
· 1 views
Install on Linux
sudo apt update
sudo apt install redis-server
sudo systemctl enable --now redis-serverRedis runs as a service on port 6379.
Install on Windows
Redis is not natively supported on Windows; use WSL2 for a real Redis, or the Microsoft-maintained port redis-server.exe for legacy needs. Docker is the cleanest option:
docker run -d -p 6379:6379 --name redis redisVerify and Ping
redis-cli ping # -> PONG
redis-cli info serverConfiguration File
The config file (redis.conf) sets port, persistence policy, maxmemory and binding address. Run with a given config:
redis-server /etc/redis/redis.confKey Points
- apt, Docker and WSL cover every OS.
- redis-cli ping confirms the server answers.
- redis.conf controls port, memory and persistence.
- 6379 is the default Redis port.