본문 바로가기
C.W.K.
Stream
Lesson 01 of 05 · published

설치하고 띄우기

~18 min · ollama, install

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

설치 한 번, daemon 하나, port 하나

Ollama는 binary 하나 설치되고 background daemon으로 돌아. 설치 끝나면 HTTP server가 localhost:11434에서 listen. 거의 전부야. daemon이 알아서 뜨는지는 어떻게 깔았느냐에 달렸어. Linux 설치 스크립트랑 macOS 앱은 서비스를 등록하고 시작까지 해주는데, Homebrew는 등록만 하고 시작은 너한테 맡겨.

플랫폼별 설치 경로

  • macOS — Homebrew가 가장 깔끔해. brew install ollama는 CLI를 깔고 서비스 정의까지 만들어 주지만, Homebrew는 서비스를 대신 시작해 주는 법이 없어. 바로 뒤에 brew services start ollama를 쳐야 지금도 뜨고 로그인할 때도 떠. 한 세션만 foreground로 돌릴 거면 ollama serve. ollama.com에서 받는 macOS 앱은 다른 경로고, 그쪽은 알아서 떠.
  • Linux — curl -fsSL https://ollama.com/install.sh | sh. Pipe-to-shell이 못 미더우면 스크립트부터 읽어봐. ollama.service systemd unit을 깔아줘.
  • Windows — ollama.com에서 공식 MSI installer.
  • Docker — headless 서버용이야. Volume을 mount해두면 컨테이너를 재시작해도 모델이 살아남아.

Daemon 떴는지 확인

설치 후 가장 단순한 health check는 root URL에 GET. Ollama is running 보이면 daemon 살아있는 거고 다음 단계로 가도 돼. 안 보이면 흔한 실패 모드는 셋이야. launchd / systemd가 시작에 실패했거나, port 11434를 다른 게 물고 있거나, 아니면 macOS에서 제일 흔한 경우인데, Homebrew로 깔아만 놓고 brew services start ollama를 아무도 안 친 거야.

Code

설치 + 확인·bash
# macOS — Homebrew. 설치만으로는 daemon이 안 떠.
brew install ollama
brew services start ollama     # 지금도 뜨고 로그인할 때도
# ...한 세션만 foreground로 돌릴 거면:
# ollama serve

# Linux — 공식 설치 스크립트
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

# Daemon 확인 (어느 플랫폼이든)
curl -s http://localhost:11434
# 기대값: "Ollama is running"

# 버전 확인
ollama --version

External links

Exercise

머신에 Ollama 설치해. macOS에서 Homebrew로 깔았으면 brew services start ollama 치기 전에 curl http://localhost:11434 한 번, 치고 나서 한 번 더 해봐. 그 차이가 이 레슨 전부야. curl http://localhost:11434랑 ollama --version으로 확인. Daemon 안 돌아가면 이유 (launchd / systemd / port 충돌) 식별하고 고쳐서 다음 단계로 넘어가.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인 — 댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.