Deployment Overview of Redis on Server¶
Prerequisites and Basic Requirements¶
To ensure a successful installation, the following requirements must be met:
-
Operating System: Ubuntu
-
Privileges: Root or sudo access is required to manage system services and package installations.
-
Network Access: The server must have internet connectivity to download packages via
apt.
File and Directory Structure¶
The application uses standard Linux directory structures for configuration and data:
-
Configuration File:
/etc/redis/redis.conf -
Service Management: Managed via
systemd.
Application installation process¶
The installation is performed using the system package manager on Ubuntu systems. The following steps are executed:
-
The package lists are updated to ensure the latest metadata is available.
-
The
redis-serverpackage is installed from the official repositories. -
The configuration file
/etc/redis/redis.confis modified to set the binding address, port, and supervised mode. -
A password is configured for authentication within the configuration file.
-
The Redis service is enabled to start automatically upon system boot and is immediately started.
Access Rights and Security¶
Security is enforced through the following configurations:
-
Binding: The service is bound to
127.0.0.1by default, restricting access to local connections only. -
Authentication: A password is required for all client connections as defined in the configuration file.
-
Supervised Mode: The system uses
systemdto manage the Redis process lifecycle.
Databases¶
Redis functions as an in-memory data structure store used as a database, cache, and message broker.
| Parameter | Value |
|---|---|
| Connection Method | Localhost (127.0.0.1) |
| Port | 6379 |
| Authentication | Password required |
Application Update Instructions¶
To update the Redis application, use the standard package manager commands: