Skip to content

Commit 8ca16b9

Browse files
committed
Update brew installation instructions
1 parent ad0f3f2 commit 8ca16b9

File tree

1 file changed

+25
-51
lines changed
  • content/operate/oss_and_stack/install/install-stack

1 file changed

+25
-51
lines changed

content/operate/oss_and_stack/install/install-stack/homebrew.md

Lines changed: 25 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -17,84 +17,53 @@ weight: 6
1717
To install Redis CE on macOS, use [Homebrew](https://brew.sh/).
1818
Make sure that you have [Homebrew installed](https://docs.brew.sh/Installation) before starting on the installation instructions below.
1919

20-
There are three brew casks available.
20+
There are two brew casks available.
2121

22-
* `redis-stack` contains both `redis-stack-server` and `redis-stack-redisinsight` casks.
23-
* `redis-stack-server` provides Redis Stack server only.
24-
* `redis-stack-redisinsight` contains Redis Insight.
22+
* `redis` contains the latest, stable version of Redis.
23+
* `redis-ce` contains the latest pre-release version of Redis, for example Redis CE 8.0-RC1.
2524

2625
## Install using Homebrew
2726

28-
First, tap the Redis CE Homebrew tap:
27+
First, tap the Redis CE Homebrew cask:
2928

3029
{{< highlight bash >}}
31-
brew tap redis-stack/redis-stack
30+
brew tap redis/redis
3231
{{< / highlight >}}
3332

3433
Next, run `brew install`:
3534

3635
{{< highlight bash >}}
37-
brew install redis-stack
36+
brew install --cask redis
3837
{{< / highlight >}}
3938

40-
The `redis-stack-server` cask will install all Redis and Redis Stack binaries. How you run these binaries depends on whether you already have Redis installed on your system.
4139

42-
### First-time Redis installation
40+
## Run Redis
4341

44-
If this is the first time you've installed Redis on your system, you need to be sure that your `PATH` variable includes the Redis Stack installation location. This location is either `/opt/homebrew/bin` for Apple silicon Macs or `/usr/local/bin` for Intel-based Macs.
42+
If this is the first time you've installed Redis on your system, you need to be sure that your `PATH` variable includes the Redis installation location. This location is either `/opt/homebrew/bin` for Apple silicon Macs or `/usr/local/bin` for Intel-based Macs.
4543

4644
To check this, run:
4745

4846
{{< highlight bash >}}
4947
echo $PATH
5048
{{< / highlight >}}
5149

52-
Then, confirm that the output contains `/opt/homebrew/bin` (Apple silicon Macs) or `/usr/local/bin` (Intel Mac). If these directories are not in the output, see the "Existing Redis installation" instructions below.
50+
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.
5351

54-
{{< note >}}
55-
Because Redis Stack is installed using a brew cask with the `brew tap` command, it will not be integrated with the `brew services` command.
56-
{{< /note >}}
57-
58-
### Existing Redis installation
59-
60-
If you have an existing Redis installation on your system, then might want to modify your `$PATH` to ensure that you're using the latest Redis Stack binaries.
61-
62-
Open the file `~/.bashrc` or `~/zshrc` (depending on your shell), and add the following lines.
63-
64-
For Intel-based Macs:
52+
Open the file `~/.bashrc` or `~/zshrc` (depending on your shell), and add the following line.
6553

6654
{{< highlight bash >}}
67-
export PATH=/usr/local/Caskroom/redis-stack-server/<VERSION>/bin:$PATH
55+
export PATH=$(brew --prefix)/bin:$PATH
6856
{{< / highlight >}}
6957

70-
For Apple silicon Macs:
71-
72-
{{< highlight bash >}}
73-
export PATH=/opt/homebrew/Caskroom/redis-stack-server/<VERSION>/bin:$PATH
74-
{{< / highlight >}}
75-
76-
In both cases, replace `<VERSION>` with your version of Redis Stack. For example, with version 6.2.0, path is as follows:
77-
78-
{{< highlight bash >}}
79-
export PATH=/opt/homebrew/Caskroom/redis-stack-server/6.2.0/bin:$PATH
80-
{{< / highlight >}}
81-
82-
### Start Redis server
83-
8458
You can now start Redis server as follows:
8559

8660
{{< highlight bash >}}
87-
redis-stack-server
61+
redis-server
8862
{{< / highlight >}}
8963

90-
## Uninstall Redis CE
91-
92-
To uninstall Redis CE, run:
93-
94-
{{< highlight bash >}}
95-
brew uninstall redis-stack-redisinsight redis-stack-server redis-stack
96-
brew untap redis-stack/redis-stack
97-
{{< / highlight >}}
64+
{{< note >}}
65+
Because Redis is installed using a Homebrew cask with the `brew tap` command, it will not be integrated with the `brew services` command.
66+
{{< /note >}}
9867

9968
## Connect to Redis CE
10069

@@ -107,18 +76,23 @@ redis-cli
10776
Test the connection with the `ping` command:
10877

10978
{{< highlight bash >}}
110-
127.0.0.1:6379> ping
79+
127.0.0.1:6379> PING
11180
PONG
11281
{{< / highlight >}}
11382

114-
You can also test that your Redis server is running using
115-
[Redis Insight]({{< relref "/develop/tools/insight" >}}).
83+
## Uninstall Redis CE
84+
85+
To uninstall Redis CE, run:
86+
87+
{{< highlight bash >}}
88+
brew uninstall redis
89+
brew untap redis/redis
90+
{{< / highlight >}}
11691

11792
## Next steps
11893

11994
Once you have a running Redis instance, you may want to:
12095

12196
* Try the [Redis CLI tutorial]({{< relref "/develop/tools/cli" >}})
12297
* Connect using one of the [Redis clients]({{< relref "/develop/clients" >}})
123-
* [Install Redis properly]({{< relref "/operate/oss_and_stack/install/archive/install-redis#install-redis-properly" >}})
124-
for production use.
98+
* Connect using [Redis Insight]({{< relref "/develop/tools/insight" >}})

0 commit comments

Comments
 (0)