[GH-ISSUE #1025] How to stop a model aftering it's served? #500

Closed
opened 2026-04-12 10:11:58 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @paulwongx on GitHub (Nov 7, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1025

When the modelling is already being served, what is the command to stop it so that I can serve it again with different variables? I want to run OLLAMA_ORIGINS=https://XXXXX ollama serve but I'm getting an error that the address is already in use.

Running ollama --help doesn't show a command to unserve...?

tldr; how can I unserve?

Originally created by @paulwongx on GitHub (Nov 7, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1025 When the modelling is already being served, what is the command to stop it so that I can serve it again with different variables? I want to run `OLLAMA_ORIGINS=https://XXXXX ollama serve` but I'm getting an error that the address is already in use. Running `ollama --help` doesn't show a command to unserve...? tldr; how can I unserve?
Author
Owner

@mxyng commented on GitHub (Nov 7, 2023):

It looks like you're referring to overriding the default allowed origins. For setting OLLAMA_ORIGINS, see https://github.com/jmorganca/ollama/blob/main/docs/faq.md#how-can-i-expose-ollama-on-my-network

<!-- gh-comment-id:1798601591 --> @mxyng commented on GitHub (Nov 7, 2023): It looks like you're referring to overriding the default allowed origins. For setting `OLLAMA_ORIGINS`, see https://github.com/jmorganca/ollama/blob/main/docs/faq.md#how-can-i-expose-ollama-on-my-network
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#500