diff --git a/content/operate/oss_and_stack/install/archive/install-redis/_index.md b/content/operate/oss_and_stack/install/archive/install-redis/_index.md index 6124c7b9f8..4c6caf5ec7 100644 --- a/content/operate/oss_and_stack/install/archive/install-redis/_index.md +++ b/content/operate/oss_and_stack/install/archive/install-redis/_index.md @@ -1,4 +1,6 @@ --- +aliases: +- /operate/oss_and_stack/install/install-redis/ categories: - docs - operate diff --git a/content/operate/oss_and_stack/install/archive/install-redis/install-redis-from-source.md b/content/operate/oss_and_stack/install/archive/install-redis/install-redis-from-source.md index b1e4dcfcc0..3565bd8f8c 100644 --- a/content/operate/oss_and_stack/install/archive/install-redis/install-redis-from-source.md +++ b/content/operate/oss_and_stack/install/archive/install-redis/install-redis-from-source.md @@ -1,4 +1,6 @@ --- +aliases: +- /operate/oss_and_stack/install/install-redis/install-redis-from-source categories: - docs - operate diff --git a/content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-linux.md b/content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-linux.md index 341874bae8..430b0a16d5 100644 --- a/content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-linux.md +++ b/content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-linux.md @@ -1,4 +1,6 @@ --- +aliases: +- /operate/oss_and_stack/install/install-redis/install-redis-on-linux categories: - docs - operate diff --git a/content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-mac-os.md b/content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-mac-os.md index aab5e8391b..7271dd6bf9 100644 --- a/content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-mac-os.md +++ b/content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-mac-os.md @@ -1,4 +1,6 @@ --- +aliases: +- /operate/oss_and_stack/install/install-redis/install-redis-on-mac-os categories: - docs - operate diff --git a/content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-windows.md b/content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-windows.md index 4ca56de993..22fad6bf6d 100644 --- a/content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-windows.md +++ b/content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-windows.md @@ -1,4 +1,6 @@ --- +aliases: +- /operate/oss_and_stack/install/install-redis/install-redis-on-windows categories: - docs - operate diff --git a/content/operate/oss_and_stack/install/install-stack/homebrew.md b/content/operate/oss_and_stack/install/install-stack/homebrew.md index e772cb29c6..4d8defa240 100644 --- a/content/operate/oss_and_stack/install/install-stack/homebrew.md +++ b/content/operate/oss_and_stack/install/install-stack/homebrew.md @@ -17,24 +17,19 @@ weight: 6 To install Redis CE on macOS, use [Homebrew](https://brew.sh/). Make sure that you have [Homebrew installed](https://docs.brew.sh/Installation) before starting on the installation instructions below. -There are two brew casks available. - -* `redis` contains the latest, stable version of Redis. -* `redis-ce` contains the latest pre-release version of Redis, for example Redis CE 8.0-RC1. - ## Install using Homebrew First, tap the Redis CE Homebrew cask: {{< highlight bash >}} brew tap redis/redis -{{< / highlight >}} +{{< /highlight >}} Next, run `brew install`: {{< highlight bash >}} brew install --cask redis -{{< / highlight >}} +{{< /highlight >}} ## Run Redis @@ -45,7 +40,7 @@ To check this, run: {{< highlight bash >}} echo $PATH -{{< / highlight >}} +{{< /highlight >}} Next, confirm that the output contains `/opt/homebrew/bin` (Apple silicon Macs) or `/usr/local/bin` (Intel Mac). If neither `/opt/homebrew/bin` nor `/usr/local/bin` are in the output, add them. @@ -53,13 +48,15 @@ Open the file `~/.bashrc` or `~/zshrc` (depending on your shell), and add the fo {{< highlight bash >}} export PATH=$(brew --prefix)/bin:$PATH -{{< / highlight >}} +{{< /highlight >}} You can now start Redis server as follows: {{< highlight bash >}} -redis-server -{{< / highlight >}} +redis-server /opt/homebrew/etc/redis.conf +{{< /highlight >}} + +The server will run in the background. {{< note >}} Because Redis is installed using a Homebrew cask with the `brew tap` command, it will not be integrated with the `brew services` command. @@ -71,14 +68,22 @@ Once Redis is running, you can test it by running `redis-cli`: {{< highlight bash >}} redis-cli -{{< / highlight >}} +{{< /highlight >}} Test the connection with the `ping` command: {{< highlight bash >}} 127.0.0.1:6379> PING PONG -{{< / highlight >}} +{{< /highlight >}} + +## Stop Redis + +Run the following command: + +{{< highlight bash >}} +redis-cli SHUTDOWN +{{< /highlight >}} ## Uninstall Redis CE @@ -87,7 +92,7 @@ To uninstall Redis CE, run: {{< highlight bash >}} brew uninstall redis brew untap redis/redis -{{< / highlight >}} +{{< /highlight >}} ## Next steps