离线安装ollama

==作者:cybsky==

[toc]

背景

经过多次场景,服务器与多个网站通信有问题

1
2
3
4
5
6
7
8
9
10
11
12
curl -fsSL https://ollama.com/install.sh | sh

>>> Cleaning up old version at /usr/local/lib/ollama
>>> Installing ollama to /usr/local
>>> Downloading Linux amd64 bundle

curl: (7) Failed connect to github.com:443; 连接超时

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

解决方案

手动联网安装

手动创建安装脚本

访问https://ollama.com/install.sh ,将脚本复制到服务器.

完全离线安装

如何以上依旧不行,采取离线安装。

文章作者: CYBSKY
文章链接: https://cybsky.top/2025/06/16/cyb-mds/AI/离线安装ollama/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 CYBSKY