ollama 官网 https://ollama.com/
- 脚本安装ollama
curl -fsSL https://ollama.com/install.sh | sh
- 配置config加速
cat ~/.ollama/config.json
{
"registry": {
"mirrors": {
"registry.ollama.ai": "https://registry.ollama.ai"
}
}
}
- run qwen qwen3.5-9b url https://ollama.com/library/qwen3.5:9b
ollama run qwen3.5:9b --verbose
如果要后台运行,直接 ollama serve 即可,可以从本地的http://localhost:11434 访问到 api

