文章目录(Table of Contents)
简介
Ollama 的使用
Ollama 的常用命令
系统级 Ollama 服务(systemd 服务模式)
- # 重启服务
- sudo systemctl restart ollama
- # 启动服务
- sudo systemctl start ollama
- # 停止服务
- sudo systemctl stop ollama
如果使用 systemd 服务模式,会自动启动 ollama server。我们也可以将其停止然后手动启动。我们首先确定 ollama 服务是否在运行:
- sudo systemctl status ollama
接着我们停用服务,同时使用 disable,确保 ollama 不会被系统启动:
- sudo systemctl stop ollama
- sudo systemctl disable ollama
如果希望再次开启服务,可以使用 enable 进行启动:
- sudo systemctl enable ollama
- 微信公众号
- 关注微信公众号
-
- QQ群
- 我们的QQ群号
-












评论