Installation
v2.6.1
Search this version
Installation
Installation
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Linux
Copy Markdown
Open in ChatGPT
Open in Claude
Redis version 7.0.5 or higher is required.
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 | root or sudo 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. |
Debian/Ubuntu
- Add the repository to the APT index, update it, and install Redis:
Bash
x
# add repositorysudo apt-get install lsb-release curl gpgcurl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpgsudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpgecho "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.listsudo apt-get update # install Redissudo apt-get install \ redis=6:8.6.2-1rl1~noble1 \ redis-server=6:8.6.2-1rl1~noble1 \ redis-tools=6:8.6.2-1rl1~noble1sudo systemctl enable --now redis-server # check redis-server statussudo systemctl status redis-server- Access Redis configuration file
/etc/redis/redis.conffor editing. - Comment out the
bindsetting and setprotected-modeoption to no.
Bash
xxxxxxxxxx...# The following line should be commented# bind 127.0.0.1...# The following line should be uncommented and set to noprotected-mode no...- Restart Redis.
Bash
xxxxxxxxxxsudo systemctl restart redis-server- Run the command with Redis CLI.
Bash
xxxxxxxxxxredis-cli ping- Confirm that the response returned is PONG.
xxxxxxxxxxPONGRocky, RHEL 9
- Create the file
/etc/yum.repos.d/redis.repowith the following contents.
xxxxxxxxxx[Redis]name=Redisbaseurl=http://packages.redis.io/rpm/rockylinux9enabled=1gpgcheck=1- Run the commands.
Bash
xxxxxxxxxxcurl -fsSL https://packages.redis.io/gpg > /tmp/redis.keysudo rpm --import /tmp/redis.keysudo dnf install -y redis-8.6.2-1.x86_64sudo systemctl enable --now redissudo systemctl status redis- Access Redis configuration file
/etc/redis/redis.conffor editing. - Comment out the
bindsetting and setprotected-modeoption to no.
Bash
xxxxxxxxxx...# The following line should be commented# bind 127.0.0.1...# The following line should be uncommented and set to noprotected-mode no...- Restart Redis.
Bash
xxxxxxxxxxsudo systemctl restart redis- Run the command with Redis CLI.
Bash
xxxxxxxxxxredis-cli ping- Confirm that the response returned is PONG.
xxxxxxxxxxPONGVariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
Air-gappednull
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message