From b338c0635f4106c48104011e5b5667bb86371865 Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Mon, 19 Feb 2024 13:10:41 -0800 Subject: [PATCH] Document setting server vars for windows --- docs/faq.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/faq.md b/docs/faq.md index 5a87e483..ae865ee7 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -46,6 +46,21 @@ If Ollama is run as a systemd service, environment variables should be set using systemctl restart ollama ``` +### Setting environment variables on Windows + +On windows, Ollama inherits your user and system environment variables. + +1. First Quit Ollama by clicking on it in the task bar + +2. Edit system environment variables from the control panel + +3. Edit or create New variable(s) for your user account for `OLLAMA_HOST`, `OLLAMA_MODELS`, etc. + +4. Click OK/Apply to save + +5. Run `ollama` from a new terminal window + + ## How can I expose Ollama on my network? Ollama binds 127.0.0.1 port 11434 by default. Change the bind address with the `OLLAMA_HOST` environment variable.