[GH-ISSUE #3453] Some ollama cli instructions: specially stop #27890

Closed
opened 2026-04-22 05:32:27 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @ejgutierrez74 on GitHub (Apr 2, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3453

What are you trying to do?

  • Stop
  • Restart
  • Probably change OLLAMA_MODELS, OLLAMA_HOST AND OLLAMA_PORT

Also would be nice to change ollama serve to ollama start for reasoning of other services or similar things.

How should we solve this?

  • Creating a CLI instructions to make it possible

ex: $ ollama stop serve
$ollama setdirectory /media/eduardo/ollama_models
$ollama sethost 127.52.56.63
$ollama restart serve

What is the impact of not solving this?

Improve usability and give more tools to users/developers.

Anything else?

No response

Originally created by @ejgutierrez74 on GitHub (Apr 2, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3453 ### What are you trying to do? - Stop - Restart - Probably change OLLAMA_MODELS, OLLAMA_HOST AND OLLAMA_PORT Also would be nice to change ollama serve to ollama start for reasoning of other services or similar things. ### How should we solve this? - Creating a CLI instructions to make it possible ex: $ ollama stop serve $ollama setdirectory /media/eduardo/ollama_models $ollama sethost 127.52.56.63 $ollama restart serve ### What is the impact of not solving this? Improve usability and give more tools to users/developers. ### Anything else? _No response_
Author
Owner

@pdevine commented on GitHub (Sep 1, 2024):

@ejgutierrez74 thanks for the issue.

You can stop serving with standard unix commands (depending on your flavour of unix) or just use Ctrl-C. You can see the OLLAMA_HOST and OLLAMA_MODELS documentation if you run ollama serve --help.

<!-- gh-comment-id:2323548516 --> @pdevine commented on GitHub (Sep 1, 2024): @ejgutierrez74 thanks for the issue. You can stop serving with standard unix commands (depending on your flavour of unix) or just use Ctrl-C. You can see the `OLLAMA_HOST` and `OLLAMA_MODELS` documentation if you run `ollama serve --help`.
Author
Owner

@ejgutierrez74 commented on GitHub (Sep 2, 2024):

I still think that ollama sethost and setdirectory would be nice.
I also opened a bug months ago, because it doesnt work in ubuntu / linux.

<!-- gh-comment-id:2325237554 --> @ejgutierrez74 commented on GitHub (Sep 2, 2024): I still think that ollama sethost and setdirectory would be nice. I also opened a bug months ago, because it doesnt work in ubuntu / linux.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#27890