搜索了一下,没找到,还是直接参考官网:
ollama/docs/ at main · ollama/ollama · GitHub
if Ollama is run as a macOS application, environment variables should be set using launchctl
:
-
For each environment variable, call
launchctl setenv
.设置环境变量launchctl setenv OLLAMA_HOST "0.0.0.0"
-
Restart Ollama application.重启