Files
pos-system/infra/servers/redis.md
Ho Ngoc Hai 5c8764f63a docs(architecture): Update documentation for direct upload architecture and API endpoints
- Enhanced the architecture documentation to recommend direct upload over legacy proxy upload for improved performance and scalability.
- Added detailed comparisons of upload patterns, including throughput, memory usage, and latency.
- Updated API endpoint documentation to reflect new direct upload methods and their benefits.
- Included examples for direct upload flow and bucket directory structure to aid developers in implementation.
2026-01-13 21:17:55 +07:00

1.4 KiB

Redis Installation Guide for Ubuntu 24.04

This guide documents the installation of the latest Redis server using the official Redis repository.

Installation Steps

  1. Install Prerequisites:

    sudo apt-get install -y lsb-release curl gpg
    
  2. Add GPG Key and Repository:

    curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
    sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg
    echo "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.list
    
  3. Install Redis Server:

    sudo apt-get update
    sudo apt-get install -y redis-server
    

Configuration

Security and Network

  • Public IP Binding: Enabled (Bound to 0.0.0.0)
  • Password Protection: Enabled
  • Password: Velik@2026
  • Port: 6379

Verification

To verify the installation and connection:

# Check service status
sudo systemctl status redis-server

# Test connection with password
redis-cli -a Velik@2026 ping
# Expected output: PONG

# Test remote connection (replace IP with 167.114.174.113)
redis-cli -h 167.114.174.113 -a Velik@2026 ping

Current Status

  • Version: 8.4.0
  • Status: Installed and Active
  • Connection: Publicly accessible on port 6379