You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
30
+
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
31
+
{{< / highlight >}}
32
+
33
+
1. Update and install redis:
34
+
{< highlight bash >}}
35
+
sudo apt-get update
36
+
sudo apt-get install redis
37
+
{{< / highlight >}}
31
38
32
-
sudo apt-get update
33
-
sudo apt-get install redis
34
-
{{< / highlight >}}
39
+
1. Verify that the installation is successful by checking the version of `redis-server` that is installed:
40
+
{{< highlight bash >}}
41
+
redis-server --version
42
+
{{< / highlight >}}
35
43
44
+
The output is similar to:
45
+
{{< highlight bash >}}
46
+
Redis server v=7.2.3 sha=00000000:0 malloc=jemalloc-5.3.0 bits=64 build=7f52fd1717e1b756
47
+
{{< / highlight >}}
48
+
49
+
1. Verify that you are able to connect to the `redis-server` using `redis-cli`:
50
+
{{< highlight bash >}}
51
+
redis-cli ping
52
+
{{< / highlight >}}
53
+
If the connection is succesfful you get a `PONG` in response.
54
+
36
55
## Install from Snapcraft
37
56
38
57
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
45
64
{{< / highlight >}}
46
65
47
66
If your Linux does not currently have snap installed, install it using the instructions described in [Installing snapd](https://snapcraft.io/docs/installing-snapd).
67
+
68
+
## Next steps
69
+
70
+
After you have a running Redis instance, you may want to:
71
+
72
+
* Try the [Redis CLI tutorial](/docs/connect/cli).
73
+
* Connect using one of the [Redis clients](/docs/connect/clients).
0 commit comments