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-server

Redis 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 redis

Verify and Ping

redis-cli ping      # -> PONG
redis-cli info server

Configuration File

The config file (redis.conf) sets port, persistence policy, maxmemory and binding address. Run with a given config:

redis-server /etc/redis/redis.conf

Key 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.
Share this post:

Comments (0)

Please login or register to comment.