Title
Create new category
Edit page index title
Edit category
Edit link
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.
Requirement | Description |
|---|---|
Operating System | Debian 12+, Ubuntu 22.04+, Rocky Linux 9+, or RHEL 9+. |
Privileges |
|
Hardware | 2 vCPU 32 GB RAM minimum. |
Disk space | At 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 Transfer | A USB drive or other secure transfer medium is required to move the packages to the air-gapped server. |
Debian, Ubuntu
Prepare packages
On the preparation machine, create file
prepare_redis.shwith content:
Run commands.
Copy the
redis-offlinefolder to a USB drive or secure transfer medium.Move it to the air-gapped server.
Install Redis
On the target server, insert the USB drive or secure transfer medium.
Copy
redis-offlinefolder to/opt/redis-offline. E.g:
Run the commands below.
Access Redis configuration file /etc/redis/redis.conf for editing.
Comment out the bind setting and set protected-mode option to no.
Restart Redis.
Run the command with Redis CLI.
Confirm that the response returned is PONG.
Rocky, RHEL 9
Prepare packages
On the preparation machine, create file
prepare_redis.shwith content:
Run commands.
Copy the redis folder to a USB drive or secure transfer medium.
Move it to the air-gapped server.
Install Redis
On the target server, insert the USB drive or secure transfer medium.
Copy
redis-offlinefolder to/opt/redis-offline. E.g:
Run the commands below.
Access Redis configuration file
/etc/redis/redis.conffor editing.Comment out the
bindsetting and setprotected-modeoption to no.
Restart Redis.
Run the command with Redis CLI.
Confirm that the response returned is PONG.