Linux - Ollama Installation
En ëmfassenden Schrëtt-fir-Schrëtt Guide fir Ollama op Debian 12 ze installéieren mat Apache2 Reverse Proxy, SSL-Verschlësselung an HTTP Basic Authentication fir sécher ëffentlech API-Notzung.
Debian 12OllamaApache2SSL/TLSAPI
Wichteg Hiweiser
Bedenkt dës wichteg Punkten virum Setup
Root-Zougang Erfuerderlech
Root-Zougang oder sudo-Berechtigungen sinn fir all Installatiounsschrëtt erfuerderlech
Domain Erfuerderlech
Eng gëlteg Domain mat DNS-Konfiguratioun ass néideg fir SSL-Zertifikater
Firewall-Konfiguratioun
Maacht d'Porten 80 an 443 an Ärer Firewall op fir HTTP/HTTPS-Zougang
Séchert Passwuert
Benotzt e staarkt Passwuert fir d'API-Authentifizéierung
Backup Erstellen
Sécheréiert all Konfiguratiounsdateien ier Dir wichteg Ännerungen maacht
Hardware-Ufuerderungen
Op d'mannst 8GB RAM sinn recommandéiert fir Ollama-Modeller ze bedreiwen
Setup Schrëtt
Update package lists again
Install basic packages
Download and install Ollama
Download and test small test model
Open Ollama service configuration
/etc/systemd/system/ollama.service.d/override.confoverride.conf
Reload systemd manager
Reload Ollama service
Restart Ollama service
Check if Ollama is listening on port 11434
Install Apache2 and SSL modules
Enable required Apache modules
Restart Apache2
Install Certbot for Let's Encrypt
Request SSL certificate for domain
Create directory for auth files
Create user with password for HTTP Basic Auth
Note: Enter a secure password when prompted
/etc/apache2/sites-available/server.chad.lu.confserver.chad.lu.conf
Enable new site configuration
Disable default Apache site
Disable default SSL site
Reload Apache configuration
Test API endpoint with curl
Note: You will be prompted for the 'apiuser' password. On successful test, you will receive JSON responses with generated text fragments.
Problemléisung
Heefeg Problemer an hir Léisungen
Installation ofgeschloss!
documentations.ollamaSetup.completion.description