← Back to all services
Caching

Redis Default Port & Configuration Guide

redis-server systemctl: redis-server

In-memory data structure store. Used as database, cache, message broker. Supports strings, hashes, lists, sets, sorted sets.

🔌 Default Ports

6379
tcp
Redis protocol
16379
tcp
Cluster bus (if clustering)
26379
tcp
Sentinel

📦 Installation Command

apt install redis-server redis-tools

⚙️ Configuration Files

  • /etc/redis/redis.conf

📂 Default Directories

  • config: /etc/redis
  • data: /var/lib/redis
  • logs: /var/log/redis
  • socket: /var/run/redis/redis-server.sock

🔐 Default Credentials

Username:N/A (no auth by default)
Password:N/A (no auth by default)
💡 Set password in redis.conf: requirepass yourpassword. For ACL (Redis 6+): user default on >password ~* +@all

⚠️ Conflicts

keydb (same port) Port: keydbPort: dragonfly

✅ Works With

php-redisnodejspythonlaravelwordpress

🛡️ Security Notes

ALWAYS set requirepass, bind to localhost or specific IPs, rename dangerous commands (FLUSHALL, CONFIG), disable protected-mode only if password set, enable TLS for remote

❓ Frequently Asked Questions

What is Redis default port?
Redis uses port 6379 by default.
Does Redis have a default password?
No, Redis has no password by default. Set requirepass in redis.conf for security.
How to secure Redis?
Bind to localhost, set requirepass, enable protected-mode, and use firewall rules.