# 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**: ```bash sudo apt-get install -y lsb-release curl gpg ``` 2. **Add GPG Key and Repository**: ```bash 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**: ```bash 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: ```bash # 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