From 456823f445851b065665fe6bb008a325ebde6c6e Mon Sep 17 00:00:00 2001 From: adamiBs Date: Mon, 23 Jun 2025 09:46:26 +0300 Subject: [PATCH] Update MacOS install docs to our official cask --- .../install-redis/install-redis-on-mac-os.md | 29 +++++-------------- 1 file changed, 8 insertions(+), 21 deletions(-) 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 4f74b4f7f2..a7d10727ef 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 @@ -33,7 +33,8 @@ If this command fails, you'll need to [follow the Homebrew installation instruct From the terminal, run: {{< highlight bash >}} -brew install redis +brew tap redis/redis +brew install --cask redis {{< / highlight >}} This will install Redis on your system. @@ -43,41 +44,27 @@ This will install Redis on your system. To test your Redis installation, you can run the `redis-server` executable from the command line: {{< highlight bash >}} -redis-server +redis-server $(brew --prefix)/etc/redis.conf {{< / highlight >}} If successful, you'll see the startup logs for Redis, and Redis will be running in the foreground. To stop Redis, enter `Ctrl-C`. -### Starting and stopping Redis using launchd +### Starting and stopping Redis in the background -As an alternative to running Redis in the foreground, you can also use `launchd` to start the process in the background: +As an alternative to running Redis in the foreground, you can also run Redis as a daemon: {{< highlight bash >}} -brew services start redis +redis-server $(brew --prefix)/etc/redis.conf --daemonize yes {{< / highlight >}} -This launches Redis and restarts it at login. You can check the status of a `launchd` managed Redis by running the following: - -{{< highlight bash >}} -brew services info redis -{{< / highlight >}} - -If the service is running, you'll see output like the following: - -{{< highlight bash >}} -redis (homebrew.mxcl.redis) -Running: ✔ -Loaded: ✔ -User: miranda -PID: 67975 -{{< / highlight >}} +This launches Redis as a daemon service. To stop the service, run: {{< highlight bash >}} -brew services stop redis +redis-cli shutdown {{< / highlight >}} ## Connect to Redis