2025-03-11
AI
00
请注意,本文编写于 40 天前,最后修改于 40 天前,其中某些信息可能已经过时。

目录

启动
遇到的问题
Docker 部署
镜像构建失败
镜像构建慢
参考

Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform designed to operate entirely offline. It supports various LLM runners like Ollama and OpenAI-compatible APIs, with built-in inference engine for RAG, making it a powerful AI deployment solution. image.png

启动

  • 下载源码
  • 配置文件:cp -RPp .env.example .env
  • 下载前端依赖:根目录下 npm install
  • 构建前端代码(注意 node 版本):根目录下 npm run build
  • 下载后端依赖:backend 目录下
    shell
    conda create --name open-webui python=3.11 conda activate open-webui pip install -r requirements.txt -U
  • 启动后端:backend 目录下 sh start.sh

遇到的问题

Docker 部署

镜像构建失败

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9

可能为 Docker 版本问题,升级 Docker 版本(尝试升级到 20.10.9 解决) image.png

镜像构建慢

修改源

shell
RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \ echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \ echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \ rm -rf /etc/apt/sources.list.d/* && \ apt update && apt upgrade -y

参考

如果对你有用的话,可以打赏哦
打赏
ali pay
wechat pay

本文作者:42tr

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.14.8