LIVE NOW
DartDay - 24 Hours of Blow Out Deals!
00d : 00h : 00m : 00s
Go To the Event

Knowledge Base

Find detailed guides, step-by-step tutorials, and FAQs to help you get the most from your DartNode services.

home databases server-setup

How to Set Up Redis

How to Set Up Redis

Installation

# Ubuntu/Debian
apt update
apt install redis-server -y

# CentOS/AlmaLinux
dnf install redis -y

Configuration

Edit /etc/redis/redis.conf and set key values:

# Bind to localhost only (recommended for security)
bind 127.0.0.1

# Set a password
requirepass YourStrongRedisPassword

# Set max memory
maxmemory 256mb
maxmemory-policy allkeys-lru

Start and enable:

systemctl start redis
systemctl enable redis

Test the connection:

redis-cli
AUTH YourStrongRedisPassword
PING
# Should return: PONG

Security note: Never expose Redis to the public internet without authentication and firewall rules.