Skip to content
C.W.K.
Stream
Lesson 01 of 05 · published

Install and Serve

~18 min · ollama, install

Level 0Downloader
0 XP0/41 lessons0/11 achievements
0/120 XP to next level120 XP to go0% complete

One install, one daemon, one port

Ollama installs a single binary and runs as a background daemon. After install, an HTTP server listens on localhost:11434. That's almost the whole picture. Whether the daemon starts by itself depends on how you installed it: the Linux script and the macOS app register and start a service for you, while a Homebrew install registers one and leaves starting it to you.

Install paths by platform

  • macOS — Homebrew is the cleanest path. brew install ollama installs the CLI and defines a service, but Homebrew never starts a service on your behalf. Follow it with brew services start ollama to run it now and at login, or ollama serve to run it in the foreground for one session. The macOS app from ollama.com is the other path, and that one does start on its own.
  • Linux — curl -fsSL https://ollama.com/install.sh | sh. Reads the script first if you don't trust pipe-to-shell; it installs systemd unit ollama.service.
  • Windows — official MSI installer from ollama.com.
  • Docker — for headless servers. Mount a volume so models persist across container restarts.

Verify the daemon is up

Once installed, the simplest health check is a GET on the root URL. If you see Ollama is running, the daemon is alive and you can move on. If you don't, the most common failure modes are: launchd / systemd failed to start, port 11434 is taken, or — the common one on macOS — Homebrew installed the formula and nobody ever ran brew services start ollama.

Code

Install + verify·bash
# macOS — Homebrew. The install does NOT start the daemon.
brew install ollama
brew services start ollama     # now and at login
# ...or, for one foreground session instead:
# ollama serve

# Linux — official install script
curl -fsSL https://ollama.com/install.sh | sh

# Docker — persistent volume
docker run -d \
  -v ollama:/root/.ollama \
  -p 11434:11434 \
  --name ollama ollama/ollama

# Verify the daemon (any platform)
curl -s http://localhost:11434
# expected: "Ollama is running"

# Check the version
ollama --version

External links

Exercise

Install Ollama on your machine. On macOS with Homebrew, check curl http://localhost:11434 BEFORE starting the service and again after brew services start ollama — the difference is the whole lesson. Verify with curl http://localhost:11434 and ollama --version. If the daemon isn't running, identify why (launchd / systemd / port collision) and fix it before moving on.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign in — Please sign in to comment.

No comments yet — be the first.