Installing Ollama on Windows, macOS, and Linux
Ollama is a lightweight utility designed to package and run open-source models locally. Let us install it on your operating system.
1. Operating System Installations
Windows
- Download the installer file from ollama.com/download/OllamaSetup.exe.
- Run the executable and follow the setup wizard.
- Once completed, Ollama runs in your system tray.
macOS
- Download the macOS zip file from the official downloads page.
- Unzip it and drag the Ollama.app file into your
/Applicationsdirectory. - Open Ollama, and click install to place command-line shortcuts.
Linux
Deploy Ollama on Linux using a single setup script:
curl -fsSL https://ollama.com/install.sh | sh2. Binding Ollama to Remote Hosts
By default, Ollama only listens to requests coming from localhost (127.0.0.1:11434). If you want other computers in your local network to connect to your models, change the binding variables:
Windows System Variable
- Open System Properties -> Environment Variables.
- Add a new User Variable named
OLLAMA_HOSTwith value0.0.0.0. - Restart the Ollama system tray application.
macOS Command Binding
Run the application in your terminal passing host parameters:
OLLAMA_HOST=0.0.0.0 ollama serveLinux systemd Configuration
- Edit the systemd service file:
sudo systemctl edit ollama.service. - Add these configuration lines:
[Service]
Environment="OLLAMA_HOST=0.0.0.0"- Reload systemd and restart Ollama:
sudo systemctl daemon-reload
sudo systemctl restart ollamaPublished on Last updated: