ollama 配置

ollama 配置
Bin Lian下载 安装
1 | curl -fsSL https://ollama.com/install.sh | sh |
更换模型目录
在启动 ollama serve 之前, 在.bashrc 中加入
1 | export OLLAMA_MODELS= < path to your models> |
如果ollama 已经启动过,则寻找ollama.service 文件去更改
1 | systemctl edit ollama.service |
启动之后,使用模型
1 | ollama run <modelname> #automatically pull if the model didn't exist |
1 | ollama sever #启动服务器 |
linux 上可以使用
1 |
|
添加
1 | Environment="HOST=0.0.0.0>" |
修改完之后重载一下
1 | systemctl daemon-reload |
确认端口可使用
1 | sudo ss -tulpn | gerp 11434 |
或者
1 | lsof -i:11434 |
感谢你赐予我前进的力量|Thank you for your support!
赞赏者名单|List of supporters
因为你们的支持让我意识到写文章的价值🙏
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
匿名评论隐私政策
✅ 你无需删除空行,直接评论以获取最佳展示效果