{
  "id": "linux",
  "title": "Install Redis Stack on Linux",
  "url": "https://redis.io/docs/latest/operate/oss_and_stack/install/archive/install-stack/linux/",
  "summary": "How to install Redis Stack on Linux",
  "tags": [
    "docs",
    "operate",
    "stack",
    "oss"
  ],
  "last_updated": "2026-04-01T08:10:08-05:00",
  "page_type": "content",
  "content_hash": "d7334761cfca43ed29cfcdb810efbda27e677a8fa0f6cc725b89f94b97843481",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Learn how to install Redis Stack on Linux from the official APT repository or RPM feed, or with Snap or AppImage."
    },
    {
      "id": "from-the-official-ubuntu-debian-apt-repository",
      "title": "From the official Ubuntu/Debian APT Repository",
      "role": "content",
      "text": "See [this page](https://redis.io/downloads/#redis-stack-downloads) for a complete list of supported Ubuntu/Debian platforms.\nAdd the repository to the APT index, update it, and install Redis Stack:\n\n\nsudo apt-get install lsb-release curl gpg\ncurl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg\nsudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg\necho \"deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main\" | sudo tee /etc/apt/sources.list.d/redis.list\nsudo apt-get update\nsudo apt-get install redis-stack-server\n\n\nRedis will not start automatically, nor will it start at boot time. To do this, run the following commands.\n\n\nsudo systemctl enable redis-stack-server\nsudo systemctl start redis-stack-server"
    },
    {
      "id": "from-the-official-red-hat-rocky-rpm-feeds",
      "title": "From the official Red Hat/Rocky RPM Feeds",
      "role": "content",
      "text": "See [this page](https://redis.io/downloads/#redis-stack-downloads) for a complete list of supported Red Hat/Rocky platforms.\nFollow these steps to install Redis Stack.\n\n1. Create the file `/etc/yum.repos.d/redis.repo` with the following contents.\n\n    \n    [Redis]\n    name=Redis\n    baseurl=http://packages.redis.io/rpm/rhel9 # replace rhel9 with the appropriate value for your platform\n    enabled=1\n    gpgcheck=1\n    \n\n1. Run the following commands:\n\n    \n    curl -fsSL https://packages.redis.io/gpg > /tmp/redis.key\n    sudo rpm --import /tmp/redis.key\n    sudo yum install epel-release\n    sudo yum install redis-stack-server\n    \n\nRedis will not start automatically, nor will it start at boot time. To do this, run the following commands.\n\n\nsudo systemctl enable redis-stack-server\nsudo systemctl start redis-stack-server"
    },
    {
      "id": "on-ubuntu-with-snap",
      "title": "On Ubuntu with Snap",
      "role": "content",
      "text": "First, download the latest Redis Stack snap package from [this page](https://redis.io/downloads/).\n\nTo install, run:\n\n\nsudo apt update\nsudo apt install redis-tools\nsudo snap install --dangerous --classic <snapname.snap>\n\n\nRedis will not start automatically, nor will it start at boot time. To start `redis-stack-server` in the foreground, run the command:\n\n\nsudo snap run redis-stack-server\n\n\nTo stop Redis, enter `Ctrl-C`.\n\nFollow these steps to integrate Redis Stack with `systemd` so you can start/stop in/from the background:\n\n1. Edit the `/etc/systemd/system/redis-stack-server.service` file and enter the following information:\n\n    \n    [Unit]\n    Description=Redis Stack Server\n    After=network.target\n\n    [Service]\n    ExecStart=/usr/bin/snap run redis-stack-server\n    Restart=always\n    User=root\n    Group=root\n\n    [Install]\n    WantedBy=multi-user.target\n    \n\n1. Run the following commands.\n\n    \n    sudo systemctl daemon-reload\n    sudo systemctl start redis-stack-server\n    sudo systemctl enable redis-stack-server\n    \n\nIf your Linux distribution does not currently have Snap installed, you can install it using the instructions described  [here](https://snapcraft.io/docs/installing-snapd). Then, download the appropriate from the [downloads page](https://redis.io/downloads/)."
    },
    {
      "id": "on-ubuntu-with-appimage",
      "title": "On Ubuntu with AppImage",
      "role": "content",
      "text": "Fuse needs to be installed before proceeding. Install it as follows.\n\n\nsudo apt update\nsudo apt install fuse\n\n\nNext, download the latest Redis Stack AppImage package from [this page](https://redis.io/downloads/).\n\nTo run the image, execute these commands:\n\n\nsudo apt update\nsudo apt install redis-tools\nchmod a+x <AppImageFile> # replace AppImageFile with the name of your downloaded file\n./<AppImageFile>\n\n\nThis will start Redis in the foreground. To stop Redis, enter `Ctrl-C`.\n\nFollow these steps to integrate Redis Stack with `systemd` so you can start/stop in/from the background:\n\n1. Edit the `/etc/systemd/system/redis-appimage.service` file and enter the following information:\n\n    \n    [Unit]\n    Description=Redis Server (AppImage)\n    After=network.target\n\n    [Service]\n    ExecStart=/path/to/your/<AppImageFile> --daemonize no\n    Restart=always\n    User=redis-user   # replace with an existing user or create a new one\n    Group=redis-group # replace with an existing group or create a new one\n\n    [Install]\n    WantedBy=multi-user.target\n    \n1. Run the following commands.\n\n    \n    sudo systemctl daemon-reload\n    sudo systemctl start redis-appimage\n    sudo systemctl enable redis-appimage"
    },
    {
      "id": "starting-and-stopping-redis-stack-in-the-background",
      "title": "Starting and stopping Redis Stack in the background",
      "role": "content",
      "text": "You can start the Redis server as a background process using the `systemctl` command. This only applies to Ubuntu/Debian when installed using `apt`, and Red Hat/Rocky when installed using `yum`.\n\n\nsudo systemctl start redis-stack-server\n\n\nTo stop the service, use:\n\n\nsudo systemctl stop redis-stack-server"
    },
    {
      "id": "connect-to-redis",
      "title": "Connect to Redis",
      "role": "content",
      "text": "Once Redis is running, you can test it by running `redis-cli`:\n\n\nredis-cli\n\n\nTest the connection with the `ping` command:\n\n\n127.0.0.1:6379> ping\nPONG\n\n\nYou can also test that your Redis server is running using\n[Redis Insight]()."
    },
    {
      "id": "next-steps",
      "title": "Next steps",
      "role": "content",
      "text": "Once you have a running Redis instance, you may want to:\n\n* Try the [Redis CLI tutorial]()\n* Connect using one of the [Redis clients]()\n* [Install Redis properly]()\n  for production use."
    }
  ],
  "examples": []
}
