Created
November 10, 2024 11:18
-
-
Save risyasin/b4e7ec91ae0c0fa4f8c5cc6e7ea9bbd1 to your computer and use it in GitHub Desktop.
Windows Ollama service with NSSM
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
nssm.exe install ollama C:\ollama\ollama.exe | |
nssm.exe set ollama AppParameters serve | |
nssm.exe set ollama AppDirectory C:\ollama\ | |
nssm.exe set ollama AppExit Default Restart | |
nssm.exe set ollama AppEnvironmentExtra ^":OLLAMA_TMPDIR=^\^"C:^\ollama^\^"^" | |
nssm.exe set ollama AppPriority REALTIME_PRIORITY_CLASS | |
nssm.exe set ollama AppStdout C:\ollama\ollama.log | |
nssm.exe set ollama AppStdoutCreationDisposition 2 | |
nssm.exe set ollama AppStderr C:\ollama\error.log | |
nssm.exe set ollama AppStderrCreationDisposition 2 | |
nssm.exe set ollama AppRedirectHook 1 | |
nssm.exe set ollama AppRotateFiles 1 | |
nssm.exe set ollama AppRotateBytes 40000 | |
nssm.exe set ollama AppTimestampLog 1 | |
nssm.exe set ollama Description "Ollama service" | |
nssm.exe set ollama DisplayName "Ollama service" | |
nssm.exe set ollama ObjectName LocalSystem | |
nssm.exe set ollama Start SERVICE_AUTO_START | |
nssm.exe set ollama Type SERVICE_WIN32_OWN_PROCESS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://nssm.cc/download