更新 通过Ollama部署本地大模型
parent
0492c6f336
commit
8ccd0d18bd
@ -8,4 +8,24 @@ wget https://github.com/ollama/ollama/releases/download/v0.5.7/ollama-linux-amd6
|
||||
#解压
|
||||
mkdir /data/Ollama && tar -zxvf ollama-linux-amd64.tgz -C /data/Ollama
|
||||
|
||||
#创建软链接到/usr/bin目录
|
||||
ln -s ...
|
||||
```
|
||||
|
||||
2. 创建和启动服务[参考链接](https://github.com/ollama/ollama/blob/main/docs/linux.md)
|
||||
```
|
||||
[Unit]
|
||||
Description=Ollama Service
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/ollama serve
|
||||
User=ollama
|
||||
Group=ollama
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
Environment="PATH=$PATH"
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user