Skip to content

Commit 456823f

Browse files
authored
Update MacOS install docs to our official cask
1 parent dc44f37 commit 456823f

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-mac-os.md

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ If this command fails, you'll need to [follow the Homebrew installation instruct
3333
From the terminal, run:
3434

3535
{{< highlight bash >}}
36-
brew install redis
36+
brew tap redis/redis
37+
brew install --cask redis
3738
{{< / highlight >}}
3839

3940
This will install Redis on your system.
@@ -43,41 +44,27 @@ This will install Redis on your system.
4344
To test your Redis installation, you can run the `redis-server` executable from the command line:
4445

4546
{{< highlight bash >}}
46-
redis-server
47+
redis-server $(brew --prefix)/etc/redis.conf
4748
{{< / highlight >}}
4849

4950
If successful, you'll see the startup logs for Redis, and Redis will be running in the foreground.
5051

5152
To stop Redis, enter `Ctrl-C`.
5253

53-
### Starting and stopping Redis using launchd
54+
### Starting and stopping Redis in the background
5455

55-
As an alternative to running Redis in the foreground, you can also use `launchd` to start the process in the background:
56+
As an alternative to running Redis in the foreground, you can also run Redis as a daemon:
5657

5758
{{< highlight bash >}}
58-
brew services start redis
59+
redis-server $(brew --prefix)/etc/redis.conf --daemonize yes
5960
{{< / highlight >}}
6061

61-
This launches Redis and restarts it at login. You can check the status of a `launchd` managed Redis by running the following:
62-
63-
{{< highlight bash >}}
64-
brew services info redis
65-
{{< / highlight >}}
66-
67-
If the service is running, you'll see output like the following:
68-
69-
{{< highlight bash >}}
70-
redis (homebrew.mxcl.redis)
71-
Running: ✔
72-
Loaded: ✔
73-
User: miranda
74-
PID: 67975
75-
{{< / highlight >}}
62+
This launches Redis as a daemon service.
7663

7764
To stop the service, run:
7865

7966
{{< highlight bash >}}
80-
brew services stop redis
67+
redis-cli shutdown
8168
{{< / highlight >}}
8269

8370
## Connect to Redis

0 commit comments

Comments
 (0)