需要在本地的 /etc/systemd/system/ollama.service添加下面命令
[service]
Environment="OLLAMA_HOST=0.0.0.0"
将ollama重新启动
systemctl daemon-reload
systemctl restart ollama
需要在本地的 /etc/systemd/system/ollama.service添加下面命令
[service]
Environment="OLLAMA_HOST=0.0.0.0"
将ollama重新启动
systemctl daemon-reload
systemctl restart ollama