Skip to content

Commit 865d6a6

Browse files
committed
add ollama
1 parent 72702ec commit 865d6a6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

py/DeepLearning.md

+8
Original file line numberDiff line numberDiff line change
@@ -1439,4 +1439,12 @@ ubuntu 加速下载
14391439
```bash
14401440
export OLLAMA_MIRROR="https://ghproxy.cn/https://github.com/ollama/ollama/releases/latest/download"
14411441
curl -fsSL https://ollama.com/install.sh | sed "s|https://ollama.com/download|$OLLAMA_MIRROR|g" | sh
1442+
1443+
## 后台运行
1444+
nohup ollama run <model_name> > ollama.log 2>&1 &
1445+
1446+
1447+
## Linux/macOS 修改端口
1448+
export OLLAMA_HOST="0.0.0.0:新端口(如 8080)"
1449+
ollama serve
14421450
```

0 commit comments

Comments
 (0)