默认Ollama绑定的ip为127.0.0.1,部署模型后无法在局域网中让其他机器访问到。
修改
- 打开ollama服务:
vi /etc/systemd/system/ollama.service - 在
[Service]部分下添加一行Environment:[Service] Environment="OLLAMA_HOST=0.0.0.0"
3.保存并退出
4.重新加载并重启服务
systemctl daemon-reload
systemctl restart ollama
SmallThinker-3B-Preview
SmallThinker-3B-preview,这是一个从 Qwen2.5-3b-Instruct 模型微调而来的新模型。
默认Ollama绑定的ip为127.0.0.1,部署模型后无法在局域网中让其他机器访问到。
vi /etc/systemd/system/ollama.service[Service] 部分下添加一行 Environment:
[Service]
Environment="OLLAMA_HOST=0.0.0.0"
3.保存并退出
4.重新加载并重启服务
systemctl daemon-reload
systemctl restart ollama
您可能感兴趣的与本文相关的镜像
SmallThinker-3B-Preview
SmallThinker-3B-preview,这是一个从 Qwen2.5-3b-Instruct 模型微调而来的新模型。
345
147
212
173

被折叠的 条评论
为什么被折叠?