在系统 /etc/systemd/system/ollama.server

[Service] 加上这两句

Environment="OLLAMA_HOST=0.0.0.0"
Environment="OLLAMA_ORIGINS=*"

然后重启服务

systemctl daemon-reload
systemctl restart ollama

Logo

免费领 150 小时云算力,进群参与显卡、AI PC 幸运抽奖

更多推荐