Deployment Overview of Redis on Server¶
Prerequisites and Basic Requirements¶
To ensure a successful deployment, the following requirements must be met:
-
Operating System: Ubuntu
-
Privileges: Root or sudo access is required for package installation and service management.
-
Network Access: Outbound access to the Ubuntu package repositories is required.
Application Installation Process¶
The application is installed directly on the host operating system using the apt package manager. The installation process involves the following steps:
-
Package Installation: The
redis-serverpackage is retrieved from the official Ubuntu repositories and installed. -
Configuration Update: The
/etc/redis/redis.conffile is modified to apply specific operational settings, including network binding, port assignment, and security credentials. -
Service Activation: The Redis service is enabled to start automatically upon system boot and is immediately started to begin operation.
Access Rights and Security¶
Security is enforced through the following configurations:
-
Network Binding: The service is configured to bind to
127.0.0.1, restricting access to local connections only. -
Authentication: A password requirement is enabled via the
requirepassdirective in the configuration file to prevent unauthorized access. -
Service Supervision: The system uses
systemdas the process supervisor to manage the service lifecycle.
Databases¶
Redis functions as an in-memory data structure store used as a database, cache, and message broker.
| Parameter | Value |
|---|---|
| Connection Method | Localhost (TCP/Unix Socket) |
| Storage Location | Default system paths for Redis data |
| Authentication | Password protected |
Application Update Instructions¶
To update the Redis application on Ubuntu, use the standard package management commands:
Location of Configuration Files and Data¶
The following file paths are used by the application:
-
Main Configuration File:
/etc/redis/redis.conf -
Service Management: Managed via
systemd.
Available Ports for Connection¶
| Port | Protocol | Description |
|---|---|---|
6379 | TCP | Default Redis communication port |