Skip to content

Commit 56c516d

Browse files
committed
Apply review comments; added AlmaLinux and Ubuntu (Focal) pages
1 parent 09a6c16 commit 56c516d

File tree

10 files changed

+542
-89
lines changed

10 files changed

+542
-89
lines changed

content/operate/oss_and_stack/install/build-stack/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ bannerText: These build instructions are not yet complete for Redis CE 8.0 GA. F
1313
bannerChildren: true
1414
---
1515

16-
Build instruction are provided for the following platforms:
16+
Build instructions are provided for the following platforms:
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
---
2+
categories:
3+
- docs
4+
- operate
5+
- stack
6+
- oss
7+
linkTitle: AlmaLinux 8.10
8+
title: Build Redis Community Edition from source on AlmaLinux 8.10
9+
weight: 5
10+
---
11+
12+
Follow the steps below to build Redis from source on a system running AlmaLinux 8.10.
13+
14+
{{< note >}}
15+
Docker was used to produce these build notes. The tested “pulls” are:
16+
- almalinux:8.10
17+
- almalinux:8.10-minimal
18+
{{< /note >}}
19+
20+
## 1. Prepare the system
21+
22+
Clean the package metadata, enable required repositories, and install development tools:
23+
24+
```bash
25+
sudo dnf clean all
26+
27+
# Add GoReleaser repo
28+
sudo tee /etc/yum.repos.d/goreleaser.repo > /dev/null <<EOF
29+
[goreleaser]
30+
name=GoReleaser
31+
baseurl=https://repo.goreleaser.com/yum/
32+
enabled=1
33+
gpgcheck=0
34+
EOF
35+
36+
sudo dnf update -y
37+
sudo dnf groupinstall "Development Tools" -y
38+
sudo dnf config-manager --set-enabled powertools
39+
sudo dnf install -y epel-release
40+
```
41+
42+
## 2. Install required packages
43+
44+
Install the build dependencies, Python 3.11, and supporting tools:
45+
46+
```bash
47+
sudo dnf install -y --nobest --skip-broken \
48+
pkg-config \
49+
wget \
50+
gcc-toolset-13-gcc \
51+
gcc-toolset-13-gcc-c++ \
52+
git \
53+
make \
54+
openssl \
55+
openssl-devel \
56+
python3.11 \
57+
python3.11-pip \
58+
python3.11-devel \
59+
unzip \
60+
rsync \
61+
clang \
62+
curl \
63+
libtool \
64+
automake \
65+
autoconf \
66+
jq \
67+
systemd-devel
68+
```
69+
70+
Create a Python virtual environment:
71+
72+
```bash
73+
python3.11 -m venv /opt/venv
74+
```
75+
76+
Enable the GCC toolset:
77+
78+
```bash
79+
sudo cp /opt/rh/gcc-toolset-13/enable /etc/profile.d/gcc-toolset-13.sh
80+
echo "source /etc/profile.d/gcc-toolset-13.sh" | sudo tee -a /etc/bashrc
81+
```
82+
83+
## 3. Install CMake
84+
85+
Install CMake 3.25.1 manually:
86+
87+
```bash
88+
CMAKE_VERSION=3.25.1
89+
ARCH=$(uname -m)
90+
91+
if [ "$ARCH" = "x86_64" ]; then
92+
CMAKE_FILE=cmake-${CMAKE_VERSION}-linux-x86_64.sh
93+
else
94+
CMAKE_FILE=cmake-${CMAKE_VERSION}-linux-aarch64.sh
95+
fi
96+
97+
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${CMAKE_FILE}
98+
chmod +x ${CMAKE_FILE}
99+
./${CMAKE_FILE} --skip-license --prefix=/usr/local --exclude-subdir
100+
rm ${CMAKE_FILE}
101+
102+
cmake --version
103+
```
104+
105+
## 4. Download and extract the Redis source
106+
107+
The Redis source code is available from the [Download](https://redis.io/downloads) page. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes git repository](https://github.com/redis/redis-hashes).
108+
109+
Download a specific version of the Redis source code zip archive from GitHub. For example, to download version `8.0`:
110+
111+
```bash
112+
wget -O redis.tar.gz https://github.com/redis/redis/archive/refs/tags/8.0.tar.gz
113+
```
114+
115+
To download the latest stable Redis release, run the following:
116+
117+
```bash
118+
wget -O redis.tar.gz https://download.redis.io/redis-stable.tar.gz
119+
```
120+
121+
## 5. Build Redis
122+
123+
Enable the GCC toolset and build Redis with support for TLS and modules:
124+
125+
```bash
126+
source /etc/profile.d/gcc-toolset-13.sh
127+
cd /usr/src/redis
128+
129+
export BUILD_TLS=yes
130+
export BUILD_WITH_MODULES=yes
131+
export INSTALL_RUST_TOOLCHAIN=yes
132+
export DISABLE_WERRORS=yes
133+
134+
make -j "$(nproc)" all
135+
sudo make install
136+
```
137+
138+
## 6. (Optional) Verify the installation
139+
140+
Check the installed Redis server and CLI versions:
141+
142+
```bash
143+
redis-server --version
144+
redis-cli --version
145+
```
146+
147+
## 7. Start Redis
148+
149+
To start Redis, use the following command:
150+
151+
```bash
152+
redis-server /path/to/redis.conf
153+
```
Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
---
2+
categories:
3+
- docs
4+
- operate
5+
- stack
6+
- oss
7+
linkTitle: AlmaLinux 9.5
8+
title: Build Redis Community Edition from source on AlmaLinux 9.5
9+
weight: 5
10+
---
11+
12+
Follow the steps below to build Redis from source on a system running AlmaLinux 9.5.
13+
14+
{{< note >}}
15+
Docker was used to produce these build notes. The tested “pulls” are:
16+
- almalinux:9.5
17+
- almalinux:9.5-minimal
18+
{{< /note >}}
19+
20+
## 1. Prepare the system
21+
22+
Enable the GoReleaser repository and install required packages:
23+
24+
```bash
25+
sudo tee /etc/yum.repos.d/goreleaser.repo > /dev/null <<EOF
26+
[goreleaser]
27+
name=GoReleaser
28+
baseurl=https://repo.goreleaser.com/yum/
29+
enabled=1
30+
gpgcheck=0
31+
EOF
32+
33+
sudo dnf clean all
34+
sudo dnf makecache
35+
sudo dnf update -y
36+
```
37+
38+
## 2. Install required packages
39+
40+
Install build dependencies, GCC toolset, Python, and utilities:
41+
42+
```bash
43+
sudo dnf install -y --nobest --skip-broken \
44+
pkg-config \
45+
xz \
46+
wget \
47+
which \
48+
gcc-toolset-13-gcc \
49+
gcc-toolset-13-gcc-c++ \
50+
git \
51+
make \
52+
openssl \
53+
openssl-devel \
54+
python3 \
55+
python3-pip \
56+
python3-devel \
57+
unzip \
58+
rsync \
59+
clang \
60+
curl \
61+
libtool \
62+
automake \
63+
autoconf \
64+
jq \
65+
systemd-devel
66+
```
67+
68+
Create a Python virtual environment:
69+
70+
```bash
71+
python3 -m venv /opt/venv
72+
```
73+
74+
Enable the GCC toolset:
75+
76+
```bash
77+
sudo cp /opt/rh/gcc-toolset-13/enable /etc/profile.d/gcc-toolset-13.sh
78+
echo "source /etc/profile.d/gcc-toolset-13.sh" | sudo tee -a /etc/bashrc
79+
```
80+
81+
## 3. Install CMake
82+
83+
Install CMake version 3.25.1 manually:
84+
85+
```bash
86+
CMAKE_VERSION=3.25.1
87+
ARCH=$(uname -m)
88+
89+
if [ "$ARCH" = "x86_64" ]; then
90+
CMAKE_FILE=cmake-${CMAKE_VERSION}-linux-x86_64.sh
91+
else
92+
CMAKE_FILE=cmake-${CMAKE_VERSION}-linux-aarch64.sh
93+
fi
94+
95+
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${CMAKE_FILE}
96+
chmod +x ${CMAKE_FILE}
97+
./${CMAKE_FILE} --skip-license --prefix=/usr/local --exclude-subdir
98+
rm ${CMAKE_FILE}
99+
100+
cmake --version
101+
```
102+
103+
## 4. Download and extract the Redis source
104+
105+
The Redis source code is available from the [Download](https://redis.io/downloads) page. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes git repository](https://github.com/redis/redis-hashes).
106+
107+
Download a specific version of the Redis source code zip archive from GitHub. For example, to download version `8.0`:
108+
109+
```bash
110+
wget -O redis.tar.gz https://github.com/redis/redis/archive/refs/tags/8.0.tar.gz
111+
```
112+
113+
To download the latest stable Redis release, run the following:
114+
115+
```bash
116+
wget -O redis.tar.gz https://download.redis.io/redis-stable.tar.gz
117+
```
118+
119+
## 5. Build Redis
120+
121+
Enable the GCC toolset and compile Redis with TLS and module support:
122+
123+
```bash
124+
source /etc/profile.d/gcc-toolset-13.sh
125+
cd /usr/src/redis
126+
127+
export BUILD_TLS=yes
128+
export BUILD_WITH_MODULES=yes
129+
export INSTALL_RUST_TOOLCHAIN=yes
130+
export DISABLE_WERRORS=yes
131+
132+
make -j "$(nproc)" all
133+
sudo make install
134+
```
135+
136+
## 6. (Optional) Verify the installation
137+
138+
Check that Redis was installed successfully:
139+
140+
```bash
141+
redis-server --version
142+
redis-cli --version
143+
```
144+
145+
## 7. Start Redis
146+
147+
To start Redis, use the following command:
148+
149+
```bash
150+
redis-server /path/to/redis.conf
151+
```

content/operate/oss_and_stack/install/build-stack/debian-bookwarm.md renamed to content/operate/oss_and_stack/install/build-stack/debian-bookworm.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,25 @@ categories:
55
- stack
66
- oss
77
linkTitle: Debian 12 (Bookworm)
8-
title: Build Redis Community Edition from source on Debian
8+
title: Build Redis Community Edition from source on Debian 12 (Bookworm)
99
weight: 5
1010
---
1111

12-
Follow the steps below to build Redis from source on a system running Debian 12 ("bookworm"):
12+
Follow the steps below to build Redis from source on a system running Debian 12 (Bookworm).
13+
14+
{{< note >}}
15+
Docker was used to produce these build notes. The tested "pulls" are:
16+
- Debian:bookworm
17+
- Debian:bookworm-slim
18+
{{< /note >}}
1319

1420
## 1. Install required dependencies
1521

1622
First, update your package lists and install the development tools and libraries needed to build Redis:
1723

1824
```bash
19-
sudo apt-get update
25+
apt-get update
26+
apt-get install -y sudo
2027
sudo apt-get install -y --no-install-recommends \
2128
ca-certificates \
2229
wget \
@@ -42,16 +49,18 @@ sudo apt-get install -y --no-install-recommends \
4249

4350
## 2. Download the Redis source code
4451

45-
Download the Redis source code archive from GitHub. For example, to download version `8.0-m04`:
52+
The Redis source code is available from the [Download](https://redis.io/downloads) page. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes git repository](https://github.com/redis/redis-hashes).
53+
54+
Download a specific version of the Redis source code zip archive from GitHub. For example, to download version `8.0`:
4655

4756
```bash
48-
wget -O redis.tar.gz https://github.com/redis/redis/archive/refs/tags/8.0-m04.tar.gz
57+
wget -O redis.tar.gz https://github.com/redis/redis/archive/refs/tags/8.0.tar.gz
4958
```
5059

51-
Verify the SHA-256 checksum of the archive to ensure integrity:
60+
To download the latest stable Redis release, run the following:
5261

5362
```bash
54-
echo "6902a938c629a33f14d49881b1b60e6621c29e445554f882ce7ec48f2743d516 *redis.tar.gz" | sha256sum -c -
63+
wget -O redis.tar.gz https://download.redis.io/redis-stable.tar.gz
5564
```
5665

5766
## 3. Extract the source archive
@@ -89,14 +98,10 @@ redis-server --version
8998
redis-cli --version
9099
```
91100

92-
## 6. Starting Redis with modules
101+
## 6. Start Redis
93102

94-
To start Redis with modules like RediSearch, RedisJSON, RedisTimeSeries, and RedisBloom, use the `--loadmodule` option for each module:
103+
To start Redis, use the following command:
95104

96105
```bash
97-
redis-server \
98-
--loadmodule /usr/local/lib/redis/modules/redisearch.so \
99-
--loadmodule /usr/local/lib/redis/modules/rejson.so \
100-
--loadmodule /usr/local/lib/redis/modules/redistimeseries.so \
101-
--loadmodule /usr/local/lib/redis/modules/redisbloom.so
106+
redis-server /path/to/redis.conf
102107
```

0 commit comments

Comments
 (0)