Infleare Installation Guide - MAC-OS

(Apple Silicon)

Introduction

This guide provides step-by-step instructions to install and set up Infleare, a database application, on macOS.

Prerequisites

Before proceeding with the installation, ensure the following:

  • You are running macOS.

  • You have 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

  1. Unzip the Installation zip file (infleare-1-0-0-linux-amd64.tar.gz)
  2. Copy the installation script and files to your server.
  3. Ensure the script has execution permissions:
chmod +x install_infleare.sh

3. Run the Installation Script

Execute the installation script with sudo privileges:

sudo ./install_infleare.sh

4. Verify the Installation

After installation, verify that the application has been set up correctly:

ls -l /usr/local/bin/infleare
ls -l /etc/infleare/config.yaml

5. Check the Configuration File

The configuration file is located at:

/etc/infleare/config.yaml

Review the configuration settings and modify them if necessary:

sudo nano /etc/infleare/config.yaml

Configuration Details

The default configuration file (config.yaml) includes:

  • Server settings: Defines host and port

  • Logging settings: Configures logging level and file path

  • Memory settings: Sets max memory usage and eviction policy

  • Security settings: Manages authentication

  • Data persistence: Enables data storage

  • Backup settings: Configures automated 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

6. Start the Application

To start Infleare, run:

/usr/local/bin/infleare

To use the CLI tool, execute:

/usr/local/bin/infleare-cli

Uninstallation

To remove Infleare from your system, run:

sudo rm -rf /usr/local/bin/infleare /etc/infleare /usr/local/infleare

Troubleshooting

If you encounter any issues:

  1. Check logs: cat /usr/local/infleare/log/infleareDB.log

  2. Verify permissions: ls -l /usr/local/bin/infleare

  3. Ensure macOS compatibility: uname -a

For further assistance, refer to the official documentation or community support.

I have read this