Skip to content

Instantly share code, notes, and snippets.

@sirkirby
Created January 21, 2025 22:19
Show Gist options
  • Save sirkirby/9216da42253b8a40d28e62c188f45f6d to your computer and use it in GitHub Desktop.
Save sirkirby/9216da42253b8a40d28e62c188f45f6d to your computer and use it in GitHub Desktop.
ollama windows service config
:: set global environment variables
setx OLLAMA_ORIGINS "*" /m
setx OLLAMA_HOST "0.0.0.0" /m
:: install service via non-sucking service manager, confirm dialog
nssm install OllamaService "C:\Users\chris\AppData\Local\Programs\Ollama\ollama.exe" serve
:: start the service
net start OllamaService
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment