By Annie Vane · Fixes · Local · Docs-only · Checked November 24, 2026
How do you stop, restart or quit Ollama?
On a Mac or Windows PC, click the Ollama icon in the menu bar or system tray and choose Quit Ollama; to restart, open Ollama again from Applications or the Start menu. On Linux, Ollama runs as a service, so use sudo systemctl stop ollama or sudo systemctl restart ollama. To free memory without quitting, run ollama stop followed by the model's name.

This guide follows one reader: someone with a 16GB laptop who has just changed an Ollama setting, or wants their memory back for other apps, and needs to know which button or command actually does it.
| What you want | Mac | Windows | Linux |
|---|---|---|---|
| Quit Ollama | Menu bar icon, Quit Ollama | Tray icon, Quit Ollama | sudo systemctl stop ollama |
| Restart Ollama | Quit, then open it from Applications | Quit, then open it from the Start menu | sudo systemctl restart ollama |
| Unload one model | ollama stop plus the model name, on any system | ||
| Install an update | Menu bar icon, Restart to update | Tray icon, Restart to update | Re-run the install script |
| Stop it starting at login | Login Items in System Settings | Startup apps in Task Manager | sudo systemctl disable ollama |
Quit and restart Ollama on a Mac
The Mac app lives in the menu bar at the top of the screen. Its menu has Open Ollama, Settings and Quit Ollama. Choose Quit Ollama. By our reading, this also stops the server the app runs. To start it again, open Ollama from your Applications folder, where Ollama's macOS docs have you install it.
Restart it after you change a setting with launchctl: Ollama's FAQ says to set Mac environment variables with launchctl setenv, then restart the Ollama application.
Quit and restart Ollama on Windows
Ollama's Windows docs say that after installation Ollama will run in the background, and the tray icon menu includes Open Ollama, Settings and Quit Ollama. Our tip: if you cannot see the icon, click the small arrow beside the clock that shows hidden icons.
To restart, the docs say to quit the tray application and relaunch it from the Start menu. Do this after you edit an environment variable such as OLLAMA_MODELS, so Ollama picks up the new value.
Stop and restart Ollama on Linux
The Linux install sets Ollama up as a systemd service, and the docs start and check it with systemctl. The same tool stops and restarts it:
sudo systemctl stop ollama
sudo systemctl start ollama
sudo systemctl restart ollama
sudo systemctl status ollama
After you edit the service to add a setting, Ollama's FAQ says to reload systemd and restart Ollama with systemctl daemon-reload and systemctl restart ollama.
By our reading, ending the process by hand may not stick: the service file in the docs sets Restart=always with RestartSec=3, so systemd starts Ollama again about three seconds after it stops unexpectedly. Use systemctl stop instead.
Free memory without quitting: stop a model
Often you do not need to quit Ollama at all, only to unload the model that is holding your memory. Ollama keeps a model loaded for 5 minutes by default after you use it. To see what is loaded and unload it now:
ollama ps
ollama stop gemma4
Replace gemma4 with the name ollama ps shows. The CLI reference lists ollama ps for running models and ollama stop to stop one. To change how long every model stays loaded, set OLLAMA_KEEP_ALIVE, for example to 10m, or 0 to unload right after each reply, then restart Ollama as above.
Stop Ollama starting when you log in
Ollama's FAQ says the Windows and Mac apps register as a login item during installation, and that Ollama keeps your choice across upgrades unless you uninstall it.
- Windows: in Task Manager, go to the Startup apps tab, search for ollama and click Disable.
- Mac: open System Settings, search for Login Items, find Ollama under Allow in the Background and turn the slider off.
- Linux:
sudo systemctl disable ollamastops it starting at boot; the docs use the same command in their uninstall steps. Start it by hand withsudo systemctl start ollamawhen you need it.
If you started ollama serve yourself
The CLI reference lists ollama serve to start Ollama in a terminal. A server started this way belongs to that terminal window: our advice is to press Ctrl+C there, or close the window, to stop it. In our experience, if ollama serve says the address is already in use, the app or service is already running; our Ollama install guide explains how to find what holds port 11434.
Common questions
Does closing the Ollama window quit Ollama?
Not on its own, by our reading. Ollama's Windows docs say it runs in the background after installation, and on both Windows and Mac the tray or menu bar icon has a separate Quit Ollama item. Use that item to stop it fully.
How do I restart Ollama after changing a setting?
On Windows and Mac, quit Ollama from its tray or menu bar icon and open it again. On Linux, run sudo systemctl daemon-reload and then sudo systemctl restart ollama.
How do I stop Ollama using so much memory?
Run ollama ps to see the loaded model, then ollama stop with its name. Ollama also unloads a model by itself after 5 minutes without use. For which models suit your memory, see our best Ollama models guide.
Verdict for the 16GB laptop owner
If you only want your memory back, ollama stop and the model name is enough. If you changed a setting, quit from the tray or menu bar icon and reopen Ollama, or use systemctl restart on Linux. Our advice: turn off the login item only if you rarely use Ollama.
Sources
- FAQ, Ollama docs, opened November 24, 2026
- CLI reference, Ollama docs, opened November 24, 2026
- Linux, Windows and macOS, Ollama docs, opened November 24, 2026
- Ollama app menus on GitHub: macOS menu bar (app_darwin.m) and Windows tray (messages.go)
Next steps: Install Ollama and fix common errors · Delete Ollama models to free disk space

