From a2d80eebaa83e89645a9c61e73bf86fe53ce601e Mon Sep 17 00:00:00 2001 From: Rajakavitha Kodhandapani Date: Fri, 5 Jan 2024 18:25:01 +0530 Subject: [PATCH 1/3] Update install-redis-on-linux.md Fixes: https://github.com/redis/redis-doc/issues/2037 --- .../install-redis/install-redis-on-linux.md | 42 +++++++++++++++---- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/docs/install/install-redis/install-redis-on-linux.md b/docs/install/install-redis/install-redis-on-linux.md index 2e47efe945..6113f676b9 100644 --- a/docs/install/install-redis/install-redis-on-linux.md +++ b/docs/install/install-redis/install-redis-on-linux.md @@ -15,24 +15,43 @@ Most major Linux distributions provide packages for Redis. You can install recent stable versions of Redis from the official `packages.redis.io` APT repository. {{% alert title="Prerequisites" color="warning" %}} -If you're running a very minimal distribution (such as a Docker container) you may need to install `lsb-release`, `curl` and `gpg` first: +If you're running a very minimal distribution (such as a Docker container) you may need to install `lsb-release`, `curl` and `gpg`: {{< highlight bash >}} sudo apt install lsb-release curl gpg {{< / highlight >}} {{% /alert %}} -Add the repository to the apt index, update it, and then install: +1. Add the repository to the apt and index the repository: -{{< highlight bash >}} -curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg + {{< highlight bash >}} + curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg -echo "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 + echo "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 + {{< / highlight >}} + +1. Update and install redis: + {< highlight bash >}} + sudo apt-get update + sudo apt-get install redis + {{< / highlight >}} -sudo apt-get update -sudo apt-get install redis -{{< / highlight >}} +1. Verify that the installation is successful by checking the version of `redis-server` that is installed: + {{< highlight bash >}} + redis-server --version + {{< / highlight >}} + The output is similar to: + {{< highlight bash >}} + Redis server v=7.2.3 sha=00000000:0 malloc=jemalloc-5.3.0 bits=64 build=7f52fd1717e1b756 + {{< / highlight >}} + +1. Verify that you are able to connect to the `redis-server` using `redis-cli`: + {{< highlight bash >}} + redis-cli ping + {{< / highlight >}} + If the connection is succesfful you get a `PONG` in response. + ## Install from Snapcraft The [Snapcraft store](https://snapcraft.io/store) provides [Redis packages](https://snapcraft.io/redis) that can be installed on platforms that support snap. @@ -45,3 +64,10 @@ sudo snap install redis {{< / highlight >}} If your Linux does not currently have snap installed, install it using the instructions described in [Installing snapd](https://snapcraft.io/docs/installing-snapd). + +## Next steps + +After you have a running Redis instance, you may want to: + +* Try the [Redis CLI tutorial](/docs/connect/cli). +* Connect using one of the [Redis clients](/docs/connect/clients). From cb46f2a699ca5c507166a0765ebeb947ae443b74 Mon Sep 17 00:00:00 2001 From: Rajakavitha Kodhandapani Date: Fri, 5 Jan 2024 18:34:36 +0530 Subject: [PATCH 2/3] Update install-redis-on-linux.md --- docs/install/install-redis/install-redis-on-linux.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install/install-redis/install-redis-on-linux.md b/docs/install/install-redis/install-redis-on-linux.md index 6113f676b9..a63306de62 100644 --- a/docs/install/install-redis/install-redis-on-linux.md +++ b/docs/install/install-redis/install-redis-on-linux.md @@ -50,7 +50,7 @@ sudo apt install lsb-release curl gpg {{< highlight bash >}} redis-cli ping {{< / highlight >}} - If the connection is succesfful you get a `PONG` in response. + If the connection is succesfful you get `PONG` in response. ## Install from Snapcraft From 4812c4fb358c938a3ce37eb75e480ccdb2dc5eff Mon Sep 17 00:00:00 2001 From: Rajakavitha Kodhandapani Date: Fri, 5 Jan 2024 20:04:46 +0530 Subject: [PATCH 3/3] Update docs/install/install-redis/install-redis-on-linux.md Co-authored-by: David Dougherty --- docs/install/install-redis/install-redis-on-linux.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install/install-redis/install-redis-on-linux.md b/docs/install/install-redis/install-redis-on-linux.md index a63306de62..1bc261344e 100644 --- a/docs/install/install-redis/install-redis-on-linux.md +++ b/docs/install/install-redis/install-redis-on-linux.md @@ -50,7 +50,7 @@ sudo apt install lsb-release curl gpg {{< highlight bash >}} redis-cli ping {{< / highlight >}} - If the connection is succesfful you get `PONG` in response. + If the connection is successful, `PONG` is returned. ## Install from Snapcraft