Installation

Windows Redis 3.2.100 Installation and Startup

Download Links

Currently (2026), the official Redis project only provides installation packages for Linux. The Windows port is archived and maintained by Microsoft (no further updates).

  1. Official site (Linux version): http://redis.io/download
  2. Windows‑version Github repository: https://github.com/MSOpenTech/redis/tags
  3. Sample release (win‑3.2.100):
    https://github.com/MicrosoftArchive/redis/releases/tag/win-3.2.100

Core Files After Extraction

FilePurpose
redis‑server.exeRedis server program
redis‑cli.exeRedis command‑line client tool
redis.windows.confDefault configuration file
redis.windows‑service.confDedicated config for installing as Windows system service
redis‑benchmark.exeRedis performance benchmark tool
dump.rdbRedis persistent data file

Start Redis Server via CMD

  1. Open CMD and change directory to your extracted Redis folder
cd D:\Redis\Redis-x64-3.2.100Code language: CSS (css)
  1. Start command (loads configuration file)
redis-server redis.windows.confCode language: CSS (css)

Signs of successful startup:

  • Running mode: Running in standalone mode
  • Default port: 6379

Drawback: When you start this way, closing the CMD window will stop the Redis service immediately


Install as Windows System Service

Starting from ordinary CMD cannot run in background. You can install Redis as a system service to enable auto‑start on boot.

We only use temporary startup for course demonstration; this step is for reference only.

Redis Connection and Basic Command Test

1. Client connection command

Open a new CMD window, go to Redis directory and run:

redis-cli.exe -h 127.0.0.1 -p 6379Code language: CSS (css)
  • -h: Specify Redis server IP (you can fill in LAN IP of other machines for remote connection)
  • -p: Specify port number
2. Basic command demo
# Set key‑value pair
set key1 value1
# Get value by key
get key1

# Query non‑existent key returns (nil)
get kkkk

set ddd 123
get dddCode language: PHP (php)

Rules:

  • set requires both【key】and【value】parameters. Missing parameters will trigger an error
  • Querying a non‑existing key returns (nil)

Notes

  1. Windows Redis 3.2 is very old. Do not use Windows‑based Redis in production. Deployment on Linux is recommended;
  2. To connect remotely, you need to adjust firewall settings and modify config file to allow access from external IP addresses;
  3. The server‑side CMD window must stay open for clients to connect normally.

Installation

Leave a Reply

Your email address will not be published. Required fields are marked *