diff --git a/content/operate/oss_and_stack/install/build-stack/almalinux-rocky-8.md b/content/operate/oss_and_stack/install/build-stack/almalinux-rocky-8.md index c5374ccf0..04d29d2dd 100644 --- a/content/operate/oss_and_stack/install/build-stack/almalinux-rocky-8.md +++ b/content/operate/oss_and_stack/install/build-stack/almalinux-rocky-8.md @@ -5,11 +5,11 @@ categories: - stack - oss linkTitle: AlmaLinux/Rocky 8.10 -title: Build and run Redis Open Source on AlmaLinux/Rocky Linux 8.10 +title: Build and run Redis Community Edition 8 on AlmaLinux/Rocky Linux 8.10 weight: 5 --- -Follow the steps below to build and run Redis Open Source from its source code on a system running AlmaLinux and Rocky Linux 8.10. +Follow the steps below to build and run Redis Community Edition 8 from its source code on a system running AlmaLinux and Rocky Linux 8.10. {{< note >}} Docker images used to produce these build notes: @@ -122,16 +122,25 @@ cmake --version ## 4. Download and extract the Redis source -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). +The Redis source code is available from [the Redis GitHub site](https://github.com/redis/redis/releases). Select the release you want to build and then select the .tar.gz file from the **Assets** drop down menu. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes GitHub repository](https://github.com/redis/redis-hashes). Copy the tar(1) file to `/usr/src`. +Alternatively, you can download the file directly using the `wget` command, as shown below. + +``` +cd /usr/src +wget -O redis-.tar.gz https://github.com/redis/redis/archive/refs/tags/.tar.gz +``` + +Replace `` with the three-digit Redis release number, for example `8.0.0`. + Extract the source: ```bash cd /usr/src -tar xvf redis.tar.gz -rm redis.tar.gz +tar xvf redis-.tar.gz +rm redis-.tar.gz ``` ## 5. Build Redis @@ -140,7 +149,7 @@ Enable the GCC toolset and build Redis with support for TLS and modules: ```bash source /etc/profile.d/gcc-toolset-13.sh -cd /usr/src/redis +cd /usr/src/redis- export BUILD_TLS=yes export BUILD_WITH_MODULES=yes @@ -148,7 +157,6 @@ export INSTALL_RUST_TOOLCHAIN=yes export DISABLE_WERRORS=yes make -j "$(nproc)" all -sudo make install ``` ## 6. (Optional) Verify the installation @@ -156,8 +164,8 @@ sudo make install Check the installed Redis server and CLI versions: ```bash -redis-server --version -redis-cli --version +./src/redis-server --version +./src/redis-cli --version ``` ## 7. Start Redis @@ -165,13 +173,13 @@ redis-cli --version To start Redis, use the following command: ```bash -redis-server /path/to/redis.conf +./src/redis-server redis-full.conf ``` To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following: ``` -redis-cli INFO +./src/redis-cli INFO ... # Modules module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors] @@ -182,3 +190,10 @@ module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[] module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[] ... ``` + +## 8. (Optional) Install Redis to its default location + +``` +cd /usr/src/redis- +sudo make install +``` \ No newline at end of file diff --git a/content/operate/oss_and_stack/install/build-stack/almalinux-rocky-9.md b/content/operate/oss_and_stack/install/build-stack/almalinux-rocky-9.md index 2f4dc1576..f75aaab64 100644 --- a/content/operate/oss_and_stack/install/build-stack/almalinux-rocky-9.md +++ b/content/operate/oss_and_stack/install/build-stack/almalinux-rocky-9.md @@ -5,11 +5,11 @@ categories: - stack - oss linkTitle: AlmaLinux/Rocky 9.5 -title: Build and run Redis Open Source on AlmaLinux/Rocky Linux 9.5 +title: Build and run Redis Community Edition 8 on AlmaLinux/Rocky Linux 9.5 weight: 10 --- -Follow the steps below to build and run Redis Open Source from its source code on a system running AlmaLinux and Rocky Linux 9.5. +Follow the steps below to build and run Redis Community Edition 8 from its source code on a system running AlmaLinux and Rocky Linux 9.5. {{< note >}} Docker images used to produce these build notes: @@ -120,16 +120,25 @@ cmake --version ## 4. Download and extract the Redis source -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). +The Redis source code is available from [the Redis GitHub site](https://github.com/redis/redis/releases). Select the release you want to build and then select the .tar.gz file from the **Assets** drop down menu. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes GitHub repository](https://github.com/redis/redis-hashes). Copy the tar(1) file to `/usr/src`. +Alternatively, you can download the file directly using the `wget` command, as shown below. + +``` +cd /usr/src +wget -O redis-.tar.gz https://github.com/redis/redis/archive/refs/tags/.tar.gz +``` + +Replace `` with the three-digit Redis release number, for example `8.0.0`. + Extract the source: ```bash cd /usr/src -tar xvf redis.tar.gz -rm redis.tar.gz +tar xvf redis-.tar.gz +rm redis-.tar.gz ``` ## 5. Build Redis @@ -138,7 +147,7 @@ Enable the GCC toolset and compile Redis with TLS and module support: ```bash source /etc/profile.d/gcc-toolset-13.sh -cd /usr/src/redis +cd /usr/src/redis- export BUILD_TLS=yes export BUILD_WITH_MODULES=yes @@ -146,7 +155,6 @@ export INSTALL_RUST_TOOLCHAIN=yes export DISABLE_WERRORS=yes make -j "$(nproc)" all -sudo make install ``` ## 6. (Optional) Verify the installation @@ -154,8 +162,8 @@ sudo make install Check that Redis was installed successfully: ```bash -redis-server --version -redis-cli --version +./src/redis-server --version +./src/redis-cli --version ``` ## 7. Start Redis @@ -163,13 +171,13 @@ redis-cli --version To start Redis, use the following command: ```bash -redis-server /path/to/redis.conf +./src/redis-server redis-full.conf ``` To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following: ``` -redis-cli INFO +./src/redis-cli INFO ... # Modules module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors] @@ -180,3 +188,10 @@ module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[] module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[] ... ``` + +## 8. (Optional) Install Redis to its default location + +``` +cd /usr/src/redis- +sudo make install +``` \ No newline at end of file diff --git a/content/operate/oss_and_stack/install/build-stack/debian-bookworm.md b/content/operate/oss_and_stack/install/build-stack/debian-bookworm.md index f2749b2d0..fbd8b48c9 100644 --- a/content/operate/oss_and_stack/install/build-stack/debian-bookworm.md +++ b/content/operate/oss_and_stack/install/build-stack/debian-bookworm.md @@ -5,11 +5,11 @@ categories: - stack - oss linkTitle: Debian 12 (Bookworm) -title: Build and run Redis Open Source on Debian 12 (Bookworm) +title: Build and run Redis Community Edition 8 on Debian 12 (Bookworm) weight: 15 --- -Follow the steps below to build and run Redis Open Source from its source code on a system running Debian 12 (Bookworm). +Follow the steps below to build and run Redis Community Edition 8 from its source code on a system running Debian 12 (Bookworm). {{< note >}} Docker images used to produce these build notes: @@ -47,60 +47,67 @@ sudo apt-get install -y --no-install-recommends \ libtool ``` -## 2. Download the Redis source code +## 2. Download and extract the Redis source -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). +The Redis source code is available from [the Redis GitHub site](https://github.com/redis/redis/releases). Select the release you want to build and then select the .tar.gz file from the **Assets** drop down menu. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes GitHub repository](https://github.com/redis/redis-hashes). Copy the tar(1) file to `/usr/src`. -## 3. Extract the source archive +Alternatively, you can download the file directly using the `wget` command, as shown below. -Create a directory for the source code and extract the contents into it: +``` +cd /usr/src +wget -O redis-.tar.gz https://github.com/redis/redis/archive/refs/tags/.tar.gz +``` + +Replace `` with the three-digit Redis release number, for example `8.0.0`. + +Extract the source: ```bash cd /usr/src -tar xvf redis.tar.gz -rm redis.tar.gz +tar xvf redis-.tar.gz +rm redis-.tar.gz ``` -## 4. Build Redis + +## 3. Build Redis Set the appropriate environment variables to enable TLS, modules, and other build options, then compile and install Redis: ```bash -cd /usr/src/redis +cd /usr/src/redis- export BUILD_TLS=yes export BUILD_WITH_MODULES=yes export INSTALL_RUST_TOOLCHAIN=yes export DISABLE_WERRORS=yes make -j "$(nproc)" all -sudo make install ``` This builds the Redis server, CLI, and any included modules. -## 5. (Optional) Verify the installation +## 4. (Optional) Verify the installation You can confirm that Redis has been built and installed successfully by checking the version: ```bash -redis-server --version -redis-cli --version +./src/redis-server --version +./src/redis-cli --version ``` -## 6. Start Redis +## 5. Start Redis To start Redis, use the following command: ```bash -redis-server /path/to/redis.conf +./src/redis-server redis-full.conf ``` To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following: ``` -redis-cli INFO +./src/redis-cli INFO ... # Modules module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors] @@ -111,3 +118,10 @@ module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[] module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[] ... ``` + +## 6. (Optional) Install Redis to its default location + +``` +cd /usr/src/redis-version +sudo make install +``` \ No newline at end of file diff --git a/content/operate/oss_and_stack/install/build-stack/debian-bullseye.md b/content/operate/oss_and_stack/install/build-stack/debian-bullseye.md index 90d3323fd..775df5615 100644 --- a/content/operate/oss_and_stack/install/build-stack/debian-bullseye.md +++ b/content/operate/oss_and_stack/install/build-stack/debian-bullseye.md @@ -5,11 +5,11 @@ categories: - stack - oss linkTitle: Debian 11 (Bullseye) -title: Build and run Redis Open Source on Debian 11 (Bullseye) +title: Build and run Redis Community Edition 8 on Debian 11 (Bullseye) weight: 20 --- -Follow the steps below to build and run Redis Open Source from its source code on a system running Debian 11 (Bullseye). +Follow the steps below to build and run Redis Community Edition 8 from its source code on a system running Debian 11 (Bullseye). {{< note >}} Docker images used to produce these build notes: @@ -47,60 +47,66 @@ sudo apt-get install -y --no-install-recommends \ libtool ``` -## 2. Download the Redis source code +## 2. Download and extract the Redis source -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). +The Redis source code is available from [the Redis GitHub site](https://github.com/redis/redis/releases). Select the release you want to build and then select the .tar.gz file from the **Assets** drop down menu. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes GitHub repository](https://github.com/redis/redis-hashes). Copy the tar(1) file to `/usr/src`. -## 3. Extract the source archive +Alternatively, you can download the file directly using the `wget` command, as shown below. -Create a directory for the source code and extract the contents into it: +``` +cd /usr/src +wget -O redis-.tar.gz https://github.com/redis/redis/archive/refs/tags/.tar.gz +``` + +Replace `` with the three-digit Redis release number, for example `8.0.0`. + +Extract the source: ```bash cd /usr/src -tar xvf redis.tar.gz -rm redis.tar.gz +tar xvf redis-.tar.gz +rm redis-.tar.gz ``` -## 4. Build Redis +## 3. Build Redis Set the appropriate environment variables to enable TLS, modules, and other build options, then compile and install Redis: ```bash -cd /usr/src/redis +cd /usr/src/redis- export BUILD_TLS=yes export BUILD_WITH_MODULES=yes export INSTALL_RUST_TOOLCHAIN=yes export DISABLE_WERRORS=yes make -j "$(nproc)" all -sudo make install ``` This builds the Redis server, CLI, and any included modules. -## 5. (Optional) Verify the installation +## 4. (Optional) Verify the installation You can confirm that Redis has been built and installed successfully by checking the version: ```bash -redis-server --version -redis-cli --version +./src/redis-server --version +./src/redis-cli --version ``` -## 6. Start Redis +## 5. Start Redis To start Redis, use the following command: ```bash -redis-server /path/to/redis.conf +./src/redis-server redis-full.conf ``` To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following: ``` -redis-cli INFO +./src/redis-cli INFO ... # Modules module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors] @@ -111,3 +117,10 @@ module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[] module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[] ... ``` + +## 6. (Optional) Install Redis to its default location + +``` +cd /usr/src/redis- +sudo make install +``` \ No newline at end of file diff --git a/content/operate/oss_and_stack/install/build-stack/macos-13-14.md b/content/operate/oss_and_stack/install/build-stack/macos-13-14.md index c9877b4af..0c6ca0b18 100644 --- a/content/operate/oss_and_stack/install/build-stack/macos-13-14.md +++ b/content/operate/oss_and_stack/install/build-stack/macos-13-14.md @@ -5,11 +5,11 @@ categories: - stack - oss linkTitle: macOS 13 / macOS 14 -title: Build and run Redis Open Source on macOS 13 (Ventura) and macOS 14 (Sonoma) +title: Build and run Redis Community Edition 8 on macOS 13 (Ventura) and macOS 14 (Sonoma) weight: 50 --- -Follow the steps below to build and run Redis Open Source from its source code on a system running macOS 13 (Ventura) and macOS 14 (Sonoma). +Follow the steps below to build and run Redis Community Edition 8 from its source code on a system running macOS 13 (Ventura) and macOS 14 (Sonoma). ## 1. Install homebrew @@ -44,17 +44,36 @@ tar -xf ${RUST_INSTALLER}.tar.xz ## 4. Download and extract the Redis source -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). +The Redis source code is available from [the Redis GitHub site](https://github.com/redis/redis/releases). Select the release you want to build and then select the .tar.gz file from the **Assets** drop down menu. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes GitHub repository](https://github.com/redis/redis-hashes). + +Create a directory for the src, for example `~/src`. + +``` +mkdir ~/src +``` + +Copy the tar(1) file to `~/src`. + +Alternatively, you can download the file directly using the `wget` command, as shown below. + +``` +cd ~/src +wget -O redis-.tar.gz https://github.com/redis/redis/archive/refs/tags/.tar.gz +``` + +Replace `` with the three-digit Redis release number, for example `8.0.0`. Extract the source: ```bash -tar xvf redis.tar.gz +tar xvf redis-.tar.gz +rm redis-.tar.gz ``` ## 5. Build Redis ``` +cd ~/src/redis- export HOMEBREW_PREFIX="$(brew --prefix)" export BUILD_WITH_MODULES=yes export BUILD_TLS=yes @@ -84,13 +103,13 @@ To start Redis, use the following command: ```bash export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 -build_dir/bin/redis-server /path/to/redis.conf +build_dir/bin/redis-server redis-full.conf ``` To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following: ``` -redis-cli INFO +build_dir/bin/redis-cli INFO ... # Modules module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors] diff --git a/content/operate/oss_and_stack/install/build-stack/macos-15.md b/content/operate/oss_and_stack/install/build-stack/macos-15.md index 537e55659..e7dca1071 100644 --- a/content/operate/oss_and_stack/install/build-stack/macos-15.md +++ b/content/operate/oss_and_stack/install/build-stack/macos-15.md @@ -5,10 +5,10 @@ categories: - stack - oss linkTitle: macOS 15 (Sequoia) -title: Build and run Redis Open Source on macOS 15 (Sequoia) +title: Build and run Redis Community Edition 8 on macOS 15 (Sequoia) weight: 40 --- -Follow the steps below to build and run Redis Open Source from its source code on a system running macOS 15 (Sequoia). +Follow the steps below to build and run Redis Community Edition 8 from its source code on a system running macOS 15 (Sequoia). To be provided at a later date. \ No newline at end of file diff --git a/content/operate/oss_and_stack/install/build-stack/ubuntu-focal.md b/content/operate/oss_and_stack/install/build-stack/ubuntu-focal.md index 838a6f792..cffb212a3 100644 --- a/content/operate/oss_and_stack/install/build-stack/ubuntu-focal.md +++ b/content/operate/oss_and_stack/install/build-stack/ubuntu-focal.md @@ -5,11 +5,11 @@ categories: - stack - oss linkTitle: Ubuntu 20.04 (Focal) -title: Build and run Redis Open Source on Ubuntu 20.04 (Focal) +title: Build and run Redis Community Edition 8 on Ubuntu 20.04 (Focal) weight: 25 --- -Follow the steps below to build and run Redis Open Source from its source code on a system running Ubuntu 20.04 (Focal). +Follow the steps below to build and run Redis Community Edition 8 from its source code on a system running Ubuntu 20.04 (Focal). {{< note >}} Docker images used to produce these build notes: @@ -69,58 +69,64 @@ sudo ln -sf /usr/local/bin/cmake /usr/bin/cmake cmake --version ``` -## 4. Download the Redis source +## 4. Download and extract the Redis source -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). +The Redis source code is available from [the Redis GitHub site](https://github.com/redis/redis/releases). Select the release you want to build and then select the .tar.gz file from the **Assets** drop down menu. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes GitHub repository](https://github.com/redis/redis-hashes). -Copy the tar(1) file to /usr/src. +Copy the tar(1) file to `/usr/src`. -## 5. Extract the source archive +Alternatively, you can download the file directly using the `wget` command, as shown below. -Create a directory for the source code and extract the contents into it: +``` +cd /usr/src +wget -O redis-.tar.gz https://github.com/redis/redis/archive/refs/tags/.tar.gz +``` + +Replace `` with the three-digit Redis release number, for example `8.0.0`. + +Extract the source: ```bash cd /usr/src -tar xvf redis.tar.gz -rm redis.tar.gz +tar xvf redis-.tar.gz +rm redis-.tar.gz ``` -## 6. Build Redis +## 5. Build Redis Set the necessary environment variables and compile Redis: ```bash -cd /usr/src/redis +cd /usr/src/redis- export BUILD_TLS=yes export BUILD_WITH_MODULES=yes export INSTALL_RUST_TOOLCHAIN=yes export DISABLE_WERRORS=yes make -j "$(nproc)" all -sudo make install ``` -## 7. (Optional) Verify the installation +## 6. (Optional) Verify the installation Confirm the Redis installation: ```bash -redis-server --version -redis-cli --version +./src/redis-server --version +./src/redis-cli --version ``` -## 8. Start Redis +## 7. Start Redis To start Redis, use the following command: ```bash -redis-server /path/to/redis.conf +./src/redis-server redis-full.conf ``` To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following: ``` -redis-cli INFO +./src/redis-cli INFO ... # Modules module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors] @@ -131,3 +137,10 @@ module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[] module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[] ... ``` + +## 8. (Optional) Install Redis to its default location + +``` +cd /usr/src/redis- +sudo make install +``` \ No newline at end of file diff --git a/content/operate/oss_and_stack/install/build-stack/ubuntu-jammy.md b/content/operate/oss_and_stack/install/build-stack/ubuntu-jammy.md index 842a4957b..a668f58b9 100644 --- a/content/operate/oss_and_stack/install/build-stack/ubuntu-jammy.md +++ b/content/operate/oss_and_stack/install/build-stack/ubuntu-jammy.md @@ -5,11 +5,11 @@ categories: - stack - oss linkTitle: Ubuntu 22.04 (Jammy) -title: Build and run Redis Open Source on Ubuntu 22.04 (Jammy) +title: Build and run Redis Community Edition 8 on Ubuntu 22.04 (Jammy) weight: 30 --- -Follow the steps below to build and run Redis Open Source from its source code on a system running Ubuntu 22.04 (Jammy). +Follow the steps below to build and run Redis Community Edition 8 from its source code on a system running Ubuntu 22.04 (Jammy). {{< note >}} Docker images used to produce these build notes: @@ -46,60 +46,66 @@ sudo apt-get install -y --no-install-recommends \ libtool ``` -## 2. Download the Redis source code +## 2. Download and extract the Redis source -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). +The Redis source code is available from [the Redis GitHub site](https://github.com/redis/redis/releases). Select the release you want to build and then select the .tar.gz file from the **Assets** drop down menu. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes GitHub repository](https://github.com/redis/redis-hashes). -Copy the tar(1) file to /usr/src. +Copy the tar(1) file to `/usr/src`. -## 3. Extract the source archive +Alternatively, you can download the file directly using the `wget` command, as shown below. -Create a directory for the source code and extract the contents into it: +``` +cd /usr/src +wget -O redis-.tar.gz https://github.com/redis/redis/archive/refs/tags/.tar.gz +``` + +Replace `` with the three-digit Redis release number, for example `8.0.0`. + +Extract the source: ```bash cd /usr/src -tar xvf redis.tar.gz -rm redis.tar.gz +tar xvf redis-.tar.gz +rm redis-.tar.gz ``` -## 4. Build Redis +## 3. Build Redis Set the appropriate environment variables to enable TLS, modules, and other build options, then compile and install Redis: ```bash -cd /usr/src/redis +cd /usr/src/redis- export BUILD_TLS=yes export BUILD_WITH_MODULES=yes export INSTALL_RUST_TOOLCHAIN=yes export DISABLE_WERRORS=yes make -j "$(nproc)" all -sudo make install ``` This builds the Redis server, CLI, and any included modules. -## 5. (Optional) Verify the installation +## 4. (Optional) Verify the installation You can confirm that Redis has been built and installed successfully by checking the version: ```bash -redis-server --version -redis-cli --version +./src/redis-server --version +./src/redis-cli --version ``` -## 6. Start Redis +## 5. Start Redis To start Redis, use the following command: ```bash -redis-server /path/to/redis.conf +./src/redis-server redis-full.conf ``` To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following: ``` -redis-cli INFO +./src/redis-cli INFO ... # Modules module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors] @@ -110,3 +116,10 @@ module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[] module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[] ... ``` + +## 6. (Optional) Install Redis to its default location + +``` +cd /usr/src/redis- +sudo make install +``` diff --git a/content/operate/oss_and_stack/install/build-stack/ubuntu-noble.md b/content/operate/oss_and_stack/install/build-stack/ubuntu-noble.md index 1617f2b67..69ba1facd 100644 --- a/content/operate/oss_and_stack/install/build-stack/ubuntu-noble.md +++ b/content/operate/oss_and_stack/install/build-stack/ubuntu-noble.md @@ -5,11 +5,11 @@ categories: - stack - oss linkTitle: Ubuntu 24.04 (Noble) -title: Build and run Redis Open Source on Ubuntu 24.04 (Noble) +title: Build and run Redis Community Edition 8 on Ubuntu 24.04 (Noble) weight: 35 --- -Follow the steps below to build and run Redis Open Source from its source code on a system running Ubuntu 24.04 (Noble). +Follow the steps below to build and run Redis Community Edition 8 from its source code on a system running Ubuntu 24.04 (Noble). {{< note >}} Docker images used to produce these build notes: @@ -46,60 +46,66 @@ sudo apt-get install -y --no-install-recommends \ libtool ``` -## 2. Download the Redis source code +## 2. Download and extract the Redis source -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). +The Redis source code is available from [the Redis GitHub site](https://github.com/redis/redis/releases). Select the release you want to build and then select the .tar.gz file from the **Assets** drop down menu. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes GitHub repository](https://github.com/redis/redis-hashes). -Copy the tar(1) file to /usr/src. +Copy the tar(1) file to `/usr/src`. -## 3. Extract the source archive +Alternatively, you can download the file directly using the `wget` command, as shown below. -Create a directory for the source code and extract the contents into it: +``` +cd /usr/src +wget -O redis-.tar.gz https://github.com/redis/redis/archive/refs/tags/.tar.gz +``` + +Replace `` with the three-digit Redis release number, for example `8.0.0`. + +Extract the source: ```bash cd /usr/src -tar xvf redis.tar.gz -rm redis.tar.gz +tar xvf redis-.tar.gz +rm redis-.tar.gz ``` -## 4. Build Redis +## 3. Build Redis Set the appropriate environment variables to enable TLS, modules, and other build options, then compile and install Redis: ```bash -cd /usr/src/redis +cd /usr/src/redis- export BUILD_TLS=yes export BUILD_WITH_MODULES=yes export INSTALL_RUST_TOOLCHAIN=yes export DISABLE_WERRORS=yes make -j "$(nproc)" all -sudo make install ``` This builds the Redis server, CLI, and any included modules. -## 5. (Optional) Verify the installation +## 4. (Optional) Verify the installation You can confirm that Redis has been built and installed successfully by checking the version: ```bash -redis-server --version -redis-cli --version +./src/redis-server --version +./src/redis-cli --version ``` -## 6. Start Redis +## 5. Start Redis To start Redis, use the following command: ```bash -redis-server /path/to/redis.conf +./src/redis-server redis-full.conf ``` To validate that the available modules have been installed, run the [`INFO`]{{< relref "/commands/info" >}} command and look for lines similar to the following: ``` -redis-cli INFO +./src/redis-cli INFO ... # Modules module:name=ReJSON,ver=20803,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors] @@ -110,3 +116,10 @@ module:name=RedisCompat,ver=1,api=1,filters=0,usedby=[],using=[],options=[] module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[] ... ``` + +## 6. (Optional) Install Redis to its default location + +``` +cd /usr/src/redis- +sudo make install +``` \ No newline at end of file