How to Stop, Restart and Quit Ollama on Mac, Windows and Linux

A friendly glowing amber llama-shaped lamp on a navy desk beside a laptop, with its power button off and a soft ring of light fading

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.

Field Card summarizing how to quit Ollama from the menu bar or tray, restart it, use systemctl on Linux and unload a model with ollama stop

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 wantMacWindowsLinux
Quit OllamaMenu bar icon, Quit OllamaTray icon, Quit Ollamasudo systemctl stop ollama
Restart OllamaQuit, then open it from ApplicationsQuit, then open it from the Start menusudo systemctl restart ollama
Unload one modelollama stop plus the model name, on any system
Install an updateMenu bar icon, Restart to updateTray icon, Restart to updateRe-run the install script
Stop it starting at loginLogin Items in System SettingsStartup apps in Task Managersudo systemctl disable ollama
From Ollama's docs and app menus, checked November 24, 2026. Each row is explained and linked below.

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.

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

Next steps: Install Ollama and fix common errors · Delete Ollama models to free disk space

Spotted a mistake? Tell us

Annie Vane, author of Local AI Scout

ABOUT THE AUTHOR

Annie Vane

Annie edits Local AI Scout and tests the models she covers on her own 24 GB M5 MacBook Air. She has worked in search, affiliate marketing and digital publishing for national newspapers and magazine groups.

More about Annie and how we test

Keep exploring: Apps · Models · All guides

Good finds.
Less noise.

The Scout Letter: new guides, app reviews and "Can I run it?" checks on new models, in one short email every two weeks. No spam.

Free to join. Unsubscribe with one click.