Skip to content

Commit 4bfd975

Browse files
authored
OP: add aliases for moved files (#1403)
1 parent 35de25c commit 4bfd975

File tree

6 files changed

+29
-14
lines changed

6 files changed

+29
-14
lines changed

content/operate/oss_and_stack/install/archive/install-redis/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
aliases:
3+
- /operate/oss_and_stack/install/install-redis/
24
categories:
35
- docs
46
- operate

content/operate/oss_and_stack/install/archive/install-redis/install-redis-from-source.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
aliases:
3+
- /operate/oss_and_stack/install/install-redis/install-redis-from-source
24
categories:
35
- docs
46
- operate

content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-linux.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
aliases:
3+
- /operate/oss_and_stack/install/install-redis/install-redis-on-linux
24
categories:
35
- docs
46
- operate

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
aliases:
3+
- /operate/oss_and_stack/install/install-redis/install-redis-on-mac-os
24
categories:
35
- docs
46
- operate

content/operate/oss_and_stack/install/archive/install-redis/install-redis-on-windows.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
aliases:
3+
- /operate/oss_and_stack/install/install-redis/install-redis-on-windows
24
categories:
35
- docs
46
- operate

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

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,19 @@ 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 two brew casks available.
21-
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.
24-
2520
## Install using Homebrew
2621

2722
First, tap the Redis CE Homebrew cask:
2823

2924
{{< highlight bash >}}
3025
brew tap redis/redis
31-
{{< / highlight >}}
26+
{{< /highlight >}}
3227

3328
Next, run `brew install`:
3429

3530
{{< highlight bash >}}
3631
brew install --cask redis
37-
{{< / highlight >}}
32+
{{< /highlight >}}
3833

3934

4035
## Run Redis
@@ -45,21 +40,23 @@ To check this, run:
4540

4641
{{< highlight bash >}}
4742
echo $PATH
48-
{{< / highlight >}}
43+
{{< /highlight >}}
4944

5045
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.
5146

5247
Open the file `~/.bashrc` or `~/zshrc` (depending on your shell), and add the following line.
5348

5449
{{< highlight bash >}}
5550
export PATH=$(brew --prefix)/bin:$PATH
56-
{{< / highlight >}}
51+
{{< /highlight >}}
5752

5853
You can now start Redis server as follows:
5954

6055
{{< highlight bash >}}
61-
redis-server
62-
{{< / highlight >}}
56+
redis-server /opt/homebrew/etc/redis.conf
57+
{{< /highlight >}}
58+
59+
The server will run in the background.
6360

6461
{{< note >}}
6562
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`:
7168

7269
{{< highlight bash >}}
7370
redis-cli
74-
{{< / highlight >}}
71+
{{< /highlight >}}
7572

7673
Test the connection with the `ping` command:
7774

7875
{{< highlight bash >}}
7976
127.0.0.1:6379> PING
8077
PONG
81-
{{< / highlight >}}
78+
{{< /highlight >}}
79+
80+
## Stop Redis
81+
82+
Run the following command:
83+
84+
{{< highlight bash >}}
85+
redis-cli SHUTDOWN
86+
{{< /highlight >}}
8287

8388
## Uninstall Redis CE
8489

@@ -87,7 +92,7 @@ To uninstall Redis CE, run:
8792
{{< highlight bash >}}
8893
brew uninstall redis
8994
brew untap redis/redis
90-
{{< / highlight >}}
95+
{{< /highlight >}}
9196

9297
## Next steps
9398

0 commit comments

Comments
 (0)