[GH-ISSUE #2372] How to stop/exit ollama service on macos? #63416

Closed
opened 2026-05-03 13:25:09 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @Rusteam on GitHub (Feb 6, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2372

I haven't been able to find a command to stop the ollama service after running it with ollama run <model>. After a /bye command is called, the service is still running at localhost:11434. Only force quitting all ollama services from the activity monitor kills the service.

Originally created by @Rusteam on GitHub (Feb 6, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2372 I haven't been able to find a command to stop the ollama service after running it with `ollama run <model>`. After a `/bye` command is called, the service is still running at `localhost:11434`. Only force quitting all ollama services from the activity monitor kills the service.
Author
Owner

@easp commented on GitHub (Feb 6, 2024):

ollama run doesn't start the service. The service is started on login by the Ollama menu bar app. If you want to stop the service, quit the app. If you want to do it from the command line you can osascript -e 'tell app "Ollama" to quit'. If you don't quit the service the model will automatically be unloaded from memory after 5 minutes of inactivity.

<!-- gh-comment-id:1930469804 --> @easp commented on GitHub (Feb 6, 2024): ollama run <model> doesn't start the service. The service is started on login by the Ollama menu bar app. If you want to stop the service, quit the app. If you want to do it from the command line you can `osascript -e 'tell app "Ollama" to quit'`. If you don't quit the service the model will automatically be unloaded from memory after 5 minutes of inactivity.
Author
Owner

@Rusteam commented on GitHub (Feb 8, 2024):

Thanks I'll test it out

<!-- gh-comment-id:1934391566 --> @Rusteam commented on GitHub (Feb 8, 2024): Thanks I'll test it out
Author
Owner

@bmizerany commented on GitHub (Mar 11, 2024):

The usual ways to exit ollama are working in the current release. Closing this issue but please reopen and update if issues persist.

<!-- gh-comment-id:1989465435 --> @bmizerany commented on GitHub (Mar 11, 2024): The usual ways to exit ollama are working in the current release. Closing this issue but please reopen and update if issues persist.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#63416