Ollama Instructions¶
Install¶
-
Mac
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew update # install brew install ollama
-
linux
curl -fsSL https://ollama.ai/install.sh | sh
-
verify
ollama --version
Startup¶
ollama serve
# 新开终端验证服务状态
curl http://localhost:11434/api/tags
# 列出所有已下载的模型
ollama list
# macOS/Linux
ps aux | grep ollama
Problems¶
- 如果11434端口被占用,可以指定其他端口:
# 指定端口启动 OLLAMA_HOST=0.0.0.0:11435 ollama serve