Air-gapped

Redis version 8.6.4 is required.

To install Redis in an air-gapped environment, download the required packages on a preparation machine and then transfer them to the air-gapped server. The preparation machine should have internet access and run the same operating system version as the target server.

Prerequisites

Before installing the Redis service, ensure the following requirements are met.

RequirementDescription
Operating SystemDebian 12+, Ubuntu 22.04+, Rocky Linux 9+, or RHEL 9+.
Privilegesroot or sudo privileges on both the preparation machine and the air-gapped server.
Hardware

2 vCPU

32 GB RAM minimum.

Disk spaceAt least 50 GB of available storage.
Network access

Required port is open (default port: 6379).

A minimum network bandwidth of 1 Gbps is required.

A bandwidth of 5 Gbps or higher is strongly recommended for production deployments.

Offline Package TransferA USB drive or other secure transfer medium is required to move the packages to the air-gapped server.

Debian, Ubuntu

Prepare packages

  1. On the preparation machine, create file prepare_redis.sh with content:
Bash
Copy
  1. Run commands.
Bash
Copy
  1. Copy the redis-offline folder to a USB drive or secure transfer medium.
  2. Move it to the air-gapped server.

Install Redis

  1. On the target server, insert the USB drive or secure transfer medium.
  2. Copy redis-offline folder to /opt/redis-offline . E.g:
Bash
Copy
  1. Run the commands below.
Bash
Copy
  1. Access Redis configuration file /etc/redis/redis.conf for editing.
  2. Comment out the bind setting and set protected-mode option to no.
Bash
Copy
  1. Restart Redis.
Bash
Copy
  1. Run the command with Redis CLI.
Bash
Copy
  1. Confirm that the response returned is PONG.
Copy

Rocky, RHEL 9

Prepare packages

  1. On the preparation machine, create file prepare_redis.sh with content:
Bash
Copy
  1. Run commands.
Bash
Copy
  1. Copy the redis folder to a USB drive or secure transfer medium.
  2. Move it to the air-gapped server.

Install Redis

  1. On the target server, insert the USB drive or secure transfer medium.
  2. Copy redis-offline folder to /opt/redis-offline . E.g:
Bash
Copy
  1. Run the commands below.
Bash
Copy
  1. Access Redis configuration file /etc/redis/redis.conf for editing.
  2. Comment out the bind setting and set protected-mode option to no.
Bash
Copy
  1. Restart Redis.
Bash
Copy
  1. Run the command with Redis CLI.
Bash
Copy
  1. Confirm that the response returned is PONG.
Copy
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches