解决Linux下ollama安装超时

1. 在 虾壳 - GitHub下载加速网站 GitHub Proxy加速器 这里获取加速网址。

2. 选择合适加速网址,执行下面命令:

export OLLAMA_MIRROR="https://ghproxy.net/https://github.com/ollama/ollama/releases/latest/download"
curl -fsSL https://ollama.com/install.sh | sed "s|https://ollama.com/download|$OLLAMA_MIRROR|g" | sh
posted @ 2025-05-20 21:27  Dsp Tian  阅读(326)  评论(0)    收藏  举报