open-webui + Ubuntu 设置开机自启动

AI摘要

Ubuntu 24.04 如何设置open-webui 开机自启动;

前提

open-webui 是通过pip 安装;

系统是Ubuntu 24.04;

添加systemd开启自启动文件

在/etc/systemd/system目录下新建openwebui.service文件夹;

[Unit]
Description=Open-webui Service
Before=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/open-webui serve
User=root
Group=root
Restart=always
RestartSec=3
EnvironmentFile=/PATH/open-webui/open-webui.env

[Install]
WantedBy=multi-user.target

重置 Systemd 配置,并启动开启自启





# 重置 Systemd 配置
sudo systemctl daemon-reload
# 设置开机自启动
sudo systemctl enable openwebui.service

open-webui 日志查看

journalctl -u openwebui -f

Saiyintai

软件测试工程师

相关推荐

【教程】Ubuntu 通过PIP方式部署openwebui

为提升部署速度,放弃Docker改用pip安装Open WebUI。安装时需添加特定参数,运行时可自定义端口。更新失败可尝试强制升级。常见问题包括:启动报错需安装ffmpeg;登录白屏需关闭OpenAI API;开启联网搜索需配置DuckDuckGo等引擎。

暂无评论