{
  "schema_version": 2,
  "id": "operate/oss_and_stack/install/archive/install-redis/install-redis-from-source",
  "title": "Install Redis from Source",
  "url": "https://redis.io/docs/latest/operate/oss_and_stack/install/archive/install-redis/install-redis-from-source/",
  "summary": "Compile and install Redis from source",
  "aliases": [
    "/operate/oss_and_stack/install/install-redis/install-redis-from-source"
  ],
  "tags": [
    "docs",
    "operate",
    "stack",
    "oss"
  ],
  "last_updated": "2026-09-21T15:59:08+01:00",
  "page_type": "content",
  "content_hash": "87ecd819b037fc19a5b29e384db80523f29da1a1635ef8e050a9d5e2f8e853e4",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "You can compile and install Redis from source on variety of platforms and operating systems including Linux and macOS. Redis has no dependencies other than a C  compiler and `libc`."
    },
    {
      "id": "downloading-the-source-files",
      "title": "Downloading the source files",
      "role": "content",
      "text": "The Redis source files are available from the [Download](https://redis.io/downloads) page. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes git repository](https://github.com/redis/redis-hashes).\n\nTo obtain the source files for the latest stable version of Redis from the Redis downloads site, run:\n\n\nwget https://download.redis.io/redis-stable.tar.gz"
    },
    {
      "id": "compiling-redis",
      "title": "Compiling Redis",
      "role": "content",
      "text": "To compile Redis, first extract the tarball, change to the root directory, and then run `make`:\n\n\ntar -xzvf redis-stable.tar.gz\ncd redis-stable\nmake\n\n\nTo build with TLS support, you'll need to install OpenSSL development libraries (e.g., libssl-dev on Debian/Ubuntu) and then run:\n\n\nmake BUILD_TLS=yes\n\n\nIf the compile succeeds, you'll find several Redis binaries in the `src` directory, including:\n\n* **redis-server**: the Redis Server itself\n* **redis-cli** is the command line interface utility to talk with Redis.\n\nTo install these binaries in `/usr/local/bin`, run:\n\n\nsudo make install"
    },
    {
      "id": "starting-and-stopping-redis-in-the-foreground",
      "title": "Starting and stopping Redis in the foreground",
      "role": "content",
      "text": "Once installed, you can start Redis by running\n\n\nredis-server\n\n\nIf successful, you'll see the startup logs for Redis, and Redis will be running in the foreground.\n\nTo stop Redis, enter `Ctrl-C`.\n\nFor a more complete installation, continue with [these instructions](https://redis.io/docs/latest/operate/oss_and_stack/install/archive/install-redis#install-redis-properly)."
    }
  ],
  "examples": []
}
