You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

部署ollama

curl https://ollama.com/install.sh |bash      #此方法可能需要翻墙
或者这个
wget https://github.com/ollama/ollama/releases/download/v0.5.7/ollama-linux-amd64.tgz
tar zxvf ollama-linux-amd64.tgz

配置systemd服务

vi /etc/systemd/system/ollama.service
...
Environment="OLLAMA_HOST=0.0.0.0"
Environment="OLLAMA_ORIGINS=*"
...

在[Service]下方增加两行,改完之后如下

重启ollama服务

systemctl daemon-reload && systemctl restart ollama

浏览器访问:http://10.10.31.89:11434/ 能够打开如下就是正常的

  • No labels