Infleare Installation Guide - Linux
Overview
This guide provides step-by-step instructions for installing and configuring Infleare, an in-memory database, on a Linux system using a provided installation script.
Prerequisites
-
A Linux-based operating system (Ubuntu, Debian, CentOS, etc.)
-
Root or sudo privileges
-
Download the compiled Infleare binary (
infleare-1-0-0-linux-amd64.zip
)
Installation Steps
Step 1: Download the installation file and extract zip file
- Unzip the Installation zip file (
infleare-1-0-0-linux-amd64.tar.gz
) - Copy the installation script and files to your server.
- Ensure the script has execution permissions.
chmod +x install_infleare.sh
Step 2: Run the Installation Script
Execute the script using the following command:
sudo ./install_infleare.sh
Step 3: Verify Installation
After the installation is complete, verify that the Infleare service is running:
sudo systemctl status infleare.service
If the service is active, the installation was successful
Configuration Details
The installation script creates the following directories and files:
-
Binary Location:
/usr/local/bin/infleare
-
Configuration Directory:
/etc/infleare/
-
Configuration File:
/etc/infleare/config.yaml
-
Log Directory:
/usr/local/infleare/log/
-
Data Directory:
/usr/local/infleare/lib/
-
Backup Directory:
/usr/local/infleare/backups/
Configuration File (config.yaml
)
The default configuration file is created at /etc/infleare/config.yaml
. Key settings include:
server:
host: "0.0.0.0"
port: 4775
logging:
level: "info"
file: "/usr/local/infleare/log/infleareDB.log"
memory:
max_size_mb: 1024
eviction_policy: "LRU"
security:
enable_auth: true
auth_method: "basic"
users:
- username: "admin"
password: "admin123"
role: "root"
persistence:
enable: true
path: "/usr/local/infleare/lib"
backup:
enable: true
interval_minutes: 60
backup_dir: "/usr/local/infleare/backups"
misc:
max_connections: 100
timeout_seconds: 30
strict_insert: true
Managing the Infleare Service
The Infleare database is managed as a systemd service.
Start the Service
sudo systemctl start infleare.service
Enable the Service on Boot
sudo systemctl enable infleare.service
Restart the Service
sudo systemctl restart infleare.service
Stop the Service
sudo systemctl stop infleare.service
View Service Logs
sudo journalctl -u infleare.service -f
Uninstallation
To remove Infleare from your system, follow these steps:
sudo systemctl stop infleare.service
sudo systemctl disable infleare.service
sudo rm -rf /etc/infleare/
sudo rm -rf /usr/local/infleare/
sudo rm /etc/systemd/system/infleare.service
daemon-reload
The installation script simplifies the deployment of Infleare on a Linux system, ensuring all necessary directories, configurations, and services are properly set up. Follow the steps in this guide to install, configure, and manage your Infleare database efficiently.
I have read this