1.4 KiB
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
-
Install Prerequisites:
sudo apt-get install -y lsb-release curl gpg -
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 -
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