Ollama和WebUI的简单部署
- 安装ollama
创建一个python 3.11的虚拟环境安装 open-webui
pip install open-webui
- 写个简单的systemd配置能够实现开机启动
注意要指定WorkingDirectory否则可能会因为权限不足而失败
[Unit]
Description=openwebui
After=network.target
[Service]
ExecStart=/home/zouyu/miniconda3/envs/webui/bin/open-webui serve
WorkingDirectory=/home/zouyu
User=zouyu
Group=zouyu
Restart=on-failure
RestartSec=10
PIDFile=/run/openwebui.pid
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin"
Environment="HTTP_PROXY=http://127.0.0.1:10809"
Environment="HTTPS_PROXY=http://127.0.0.1:10809"
Environment="http_proxy=http://127.0.0.1:10809"
Environment="https_proxy=http://127.0.0.1:10809"
RestartPreventExitStatus=23
[Install]
WantedBy=multi-user.target
暂无标签
感谢扫码支持