Blog
Local LLM Installation using Ollama
Step 1: Install Ollama
Start with the official download page:
Step 2: Start the server
If you want browser extension support, this is the pattern I used:
@echo off
taskkill /F /IM ollama.exe >nul 2>&1
set OLLAMA_ORIGINS=moz-extension://*,chrome-extension://*,safari-web-extension://*
start cmd /k ollama serve
Common issue: port 11434
When Ollama fails to start, the usual culprit is a stale process still holding the default port.
FOR /F "tokens=5" %%P IN ('netstat -aon ^| findstr :11434 ^| findstr LISTENING') DO (
taskkill /PID %%P /F >nul 2>&1
)