Created
January 21, 2025 22:19
-
-
Save sirkirby/9216da42253b8a40d28e62c188f45f6d to your computer and use it in GitHub Desktop.
ollama windows service config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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