Title
Create new category
Edit page index title
Edit category
Edit link
Air-gapped
Redis version 7.0.5 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
On the preparation machine, run commands.
Copy the
redisfolder 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.
Run the commands below in the
redisfolder.
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.
Rocky, RHEL 9
Prepare packages
On the preparation machine, 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.
Run the commands below in the
redisfolder.
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.
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.