Ollma使用代理
修改配置文件
/etc/systemd/system/ollama.service
在[Service]标签下增加以下内容
Environment="http_proxy=socks5://127.0.0.1:1080"
Environment="https_proxy=socks5://127.0.0.1:1080"
重启Ollma服务
systemctl daemon-reload
systemctl restart ollma
修改配置文件
/etc/systemd/system/ollama.service
在[Service]标签下增加以下内容
Environment="http_proxy=socks5://127.0.0.1:1080"
Environment="https_proxy=socks5://127.0.0.1:1080"
重启Ollma服务
systemctl daemon-reload
systemctl restart ollma