Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sicherheitslücken (CVE)CVE-2026-70657 | 9001 Copyparty up to 1.20.16 access control(19.09.2026 um 05:23 Uhr)
Sicherheitslücken (CVE)CVE-2026-70657 | 9001 Copyparty up to 1.20.16 access control(19.09.2026 um 05:23 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Deploying Redis In-Memory Data Store on Ubuntu 24.04

Redis is an open-source in-memory data store used as a cache, message broker, and primary database for low-latency workloads. This guide deploys Redis using Docker Compose with both RDB snapshots and AOF persistence enabled, password authentication, and a tuned host kernel setting. By the end, you'll have Redis accepting authenticated clients on your server.

Set Up the Directory Structure

1. Create the project directory structure:

$ mkdir -p ~/redis-stack/{data,conf}
$ cd ~/redis-stack

2. Create the environment file:

$ nano .env
REDIS_PASSWORD=STRONG_REDIS_PASSWORD
REDIS_PORT=6379

3. Create the Redis configuration file:

$ nano conf/redis.conf
bind 0.0.0.0
protected-mode yes
port 6379

save 900 1
save 300 10
save 60 10000

dir /data
dbfilename dump.rdb

appendonly yes
appendfilename "appendonly.aof"

Prepare the Host

Redis recommends vm.overcommit_memory=1 to avoid background-save failures under memory pressure.

1. Append the sysctl setting:

$ echo "vm.overcommit_memory = 1" | sudo tee -a /etc/sysctl.conf

2. Apply it immediately:

$ sudo sysctl -p

Deploy with Docker Compose

1. Create the Docker Compose manifest:

$ nano docker-compose.yaml
services:
  redis:
    image: redis:7.2
    container_name: redis
    command: [
      "redis-server",
      "/usr/local/etc/redis/redis.conf",
      "--requirepass", "${REDIS_PASSWORD}"
    ]
    ports:
      - "${REDIS_PORT}:6379"
    volumes:
      - "./data:/data"
      - "./conf/redis.conf:/usr/local/etc/redis/redis.conf:ro"
    environment:
      - REDIS_PASSWORD=${REDIS_PASSWORD}
    restart: unless-stopped

    healthcheck:
      test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "PING"]
      interval: 10s
      timeout: 3s
      retries: 5
      start_period: 5s

2. Start the service:

$ docker compose up -d

3. Verify the service is running:

$ docker compose ps
$ docker compose logs

Verify Connectivity

1. Install the redis-cli tool:

$ sudo apt install redis-tools -y

2. Ping the server with the password:

$ redis-cli -h REDIS_HOST -p REDIS_PORT -a REDIS_PASSWORD PING

A PONG response confirms Redis is accepting authenticated clients.

Next Steps

Redis is running with persistence and password auth. From here you can:

  • Tune maxmemory and the eviction policy to match your workload
  • Configure replication (replicaof) for read scaling and warm standbys
  • Bind Redis to 127.0.0.1 and front it via a VPN or stunnel for remote access

For the full guide with additional tips, visit the original article on Vultr Docs.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Deploying Redis In-Memory Data Store on Ubuntu 24.04

Thematisch verwandte Begriffe: Deploying, Redis, InMemory, Data · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-61591 | djust provides Phoenix LiveView-style reactive server-side rendering for…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Radar › Alle Kategorien
Alle aus Alle Kategorien 2.659.533
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Rechts: Artikel Ziehen Links: RSS
Hoch: nächster Artikel Runter: zurück / schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Rechts: Original Links: RSS-Ansicht
↗ Original-Quelle
Social Reaktionen Stimme abgeben (+5 Karma)
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick