Air-gapped

Redis version 7.0 or higher 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.

Debian, Ubuntu

Prepare packages

  1. On the preparation machine, 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. Run the commands below in the redis folder.
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, 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. Run the commands below in the redis folder.
Bash
Copy

Sometimes, other dependencies require upgrading. Example:

You should manually download the dependencies using the command dnf download --resolve --alldeps --downloaddir . <package_names> . Then copy them to the redis folder and install again.

  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
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard